Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   It won't build anymore (http://www.chiefdelphi.com/forums/showthread.php?t=53294)

cgront 02-02-2007 16:40

It won't build anymore
 
Up until today, our code was building fine. Now on two laptops both with our modified code, and default code that we just downloaded, we're getting an error:
c:\mcc18\h\stdio.h:26:Error: syntax error

We didn't make any changes to stdio.h so I'm not sure what's going on.
Any suggestions would be great.
Thanks

xrabohrok 02-02-2007 17:20

Re: It won't build anymore
 
Where does the compiler take you in the code when you double click the error? If it references to somewhere in stdio.h itself, then you are using an instance of one of it's functions wrong. printf is wierd, it doesn't work with mplab like it does other compilers do, if that helps.

Ctrl Alt Delete 02-02-2007 17:24

Re: It won't build anymore
 
Adding to xrabohrok said, printf doesn't seem to work outside of the default routines. Anything that isn't sent directly through the function that loops the code through the micro processor won't print anything. It seems to give those errors too.

Noah Kleinberg 02-02-2007 17:26

Re: It won't build anymore
 
Sounds like you have the same problem addressed in this thread. Check the lines right before "#include <stdio.h>", you've probably got a random letter right before it.

By the way, try searching next time... A search for "stdio.h syntax error" got the thread I linked to above


All times are GMT -5. The time now is 14:11.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi