bobb8915
Joined: 17 Jun 2011 Posts: 1
|
Compiler - Linker question |
Posted: Fri Jun 17, 2011 9:07 am |
|
|
I've been working with the CCS mcu.zip (multiple compilation units) sample project code. The zip file has three C source and header files and a pdf description. The sample code includes batch files for command line builds and instructions for creating a project with the IDE. Here is my issue.
Using the IDE, CCS PCWH C compiler shows the three files in this order: main.c, filter.c and report.c. When I build, I get an "EXTERNal symbol not found" error. This is referring to symbol declared in report.c and referenced in main.c. If I change the compile order with report.c first, it works just fine. Interesting to note that the command line batch files have report.c first. They build without error.
Is CCS a single pass compiler/linker? Are there compile time options I'm missing?
Any and all help is greatly appreciated. |
|