CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Compiler - Linker question

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
bobb8915



Joined: 17 Jun 2011
Posts: 1

View user's profile Send private message

Compiler - Linker question
PostPosted: Fri Jun 17, 2011 9:07 am     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group