Friday, July 31, 2009

Gcc linux stray error?

Gcc stray error in linux..?


well, i made a program in dev C, since the codes are too long, i just copy and pasted it in linux gcc,when i compiled it, there are many stray errors, but all the errors are pointing out on the lines where i typed system("clear"); function, what can i do?





here's where one of the errors occur:





void compfirst()


{


int e=0;


system(“clear”);


printboard();


while(tracker1!=1)


{


compmove();


system(“clear”);


printboard();


e++;


if (tracker1==1)


{


return;


}


else if(e==5)


{


draws=1;


return;


}


playermove();


system(“clear”);


printboard();


} return 0;


when compiled, says stray eror,it is because i just pasted it?what will i do to correct it?do i need to remove the system clear functions? and make a different function?thanks

Gcc linux stray error?
Dunno. Clear works fine in Debian.





Seriously, more information is needed. What is the exact wording of the error messages, what include files do you list (the system command is correct however the only stray errors I know about or can reference are specific stray character messages: stray '/' etc). I understand that this is a pretty long program. I suggest you might ask in one of the C programming groups.

morning glory

No comments:

Post a Comment