Error: "Can not write C file"

For some reason, when I got to build and download a code to my robot, the error as I wrote in the title to the topic shows up. This is a fresh install of the easy C program and I do not know what happened in it.

It is a test code that goes as shown:


#include "userAPI.h"

int line1;
int line2;
int line3;

Void main (void)
{[INDENT]line1 = getanaloginput(1);
if(0 < line1 <= 255)
{[INDENT]setmotor(1,255);
[/INDENT]}
[/INDENT]}

Now, I do expect that it may be something to do with the install. Like it is missing something needed.

Is this a personal computer or school? easyC V2 or Pro?

It is a school computer and it has an outdated one I think. But it is not any Easy C pro.

If you have version 1 you should be an administrator to run the software.

If you have V2 or Pro have the schools administrator update you computer to most resent version of the software. There are many fixes that were added for Vista / Win 7 that help the software work better on a locked down PC on all OS’s.

Edit: To find you version goto Help Menu → About
1.x = easyC
2.x = easyCV2
3.x = easyCPro

The version is easy C 1.1

:C

So, we found out that the USB ports that we use are 5,6, and 7. But the problem is that we can not change it from 1 to any of these. We can click on it without an error, but we can not switch it permanently. So, we think that might be the issue.

You can remap the com ports in device manager, but doesn’t relate to “cannot write C file”

Well, we think it may be the cause. If it can not speak to the bot, then it clearly can not write the file in it. We tried downloading defaut codes and this is what it shows. But unfortunantly, as it is a school computer. We have no access to rename the ports. We tried to switch it in the download menu. But it refuses to allow us to change to valid ports.