Sunday, August 2, 2009

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?

Gcc stray error in linux..?
Post a snippet of the code and the accompanying error messages. From your description there is nothing wrong so closer inspection is required.


====================





Response to your update:





Pretty weird. It looks like when you pasted your code you got some weird characters. I pasted your code into my editor and every instance of the system call looks like this:





system(\u201cclear\u201d);





I would delete all the system call lines and retype them by hand. The rest of your function pasted ok.

florist shop

No comments:

Post a Comment