View previous topic :: View next topic |
Author |
Message |
colinbrenton
Joined: 13 Feb 2007 Posts: 6
|
PCW 4.099 and MPLab 8.40 question |
Posted: Tue Oct 27, 2009 9:33 am |
|
|
Hello,
I have the above setup, running under XP SP3. I can compile code in the CCS IDE, but the same code gives errors in MPLab. I have (I think) setup MPLab to use the CCS compiler correctly.
I don't understand why the results are different, surely the code that physically creates machine code from C code must be the same in both cases??
The PIC target is 18F6527 in both cases, the code in the .c and .h files is identical.
Thanks |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Oct 27, 2009 10:55 am |
|
|
1. What are the errors ?
2. What is the total number of files in the project ?
3. Are using the "one big file" method (no linker, with all modules
added to a main source file with #include) ?
Or, are you trying to use Multiple Compilation Units?
4. What is your compiler version? |
|
|
colinbrenton
Joined: 13 Feb 2007 Posts: 6
|
|
Posted: Tue Oct 27, 2009 11:39 am |
|
|
Hi PCM,
Thanks for the response, I made the mistake of adding all my .c and .h files to the Sources in the project, and declaring them with #include "file.c"
This obviously caused problems, as the same file is declared twice. Things like IO declarations in the affected files showed up as errors. All is good now I have only the #include statements, and only the main .c file in the sources list.
Thanks,
Colin |
|
|
|