I created a project in mplab v8 and there are 2 files.
file 1 is just standard c routines.
file 2 is the file with void main () {while(1)dostuff();}
When I build all I get
Executing: "C:\Program files\Picc\CCSC.exe" +FH "C:\code\modemtest\lcd.c" +EXPORT +DF +LN +T +A +M +Z +Y=9 +EA
*** Error 70 "lcd.c" Line 237(0,1): No main() function found
1 Errors, 0 Warnings.
which is true, there is no main function. It's in the next file.
lcd.c is a bit of copy and paste I made from here to drive the lcd on a picdem 2.
The other file compiles just fine (it has a main func of course).
If I put all the code in one file it works.
The manual simply states that all programs need a main() function.
Can someone advise me what could cause this odd behavior?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum