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

Problems linking object files - .cof and .hex not created

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



Joined: 16 Nov 2010
Posts: 2

View user's profile Send private message

Problems linking object files - .cof and .hex not created
PostPosted: Tue Nov 16, 2010 11:13 am     Reply with quote

Hi all,

I am hoping someone can help me with this problem, as support through CCS is slow in arriving and being in the UK doesn't help matters.

I have been wrestling with some object files that I received from Bolymin for use with an embedded display of theirs. The story is long, but I now believe I have the correct CCS compiler for the job - suffice to say, I fell into the legendary "multiple compilation unit" trap. What a pile of crap. Anywho, I have the following files that I want to compile and link:

ddu.c (provides main())
config.h (provides 24FJ64GA004.h for the Bolymin display I'm using)
uart.h (provides a list of UART function prototypes)
uart.o (the object file that provides the UART functions)
SSD3103.h (provides a list of display function prototypes)
SSD3103.o (the object file that provides the display functions)

Now, all I would like to do is compile and build this. Rolling Eyes I am using PCDIDE (which I think might just be the PCW IDE with the PCD compiler?) and MPLAB ICD-2 to debug.

Enabling "Multiple Compilation Units" and "Link Separately" in the project options means that I can compile the source without error. However, the .cof and .hex files are not being created in this process, which suggests a linking problem. If I remove the function calls in main() that invoke the library functions in uart.o or SSD3103.o and recompile, the project compiles and links properly - I can see all the output files. So I'm taking a semi-educated punt that the object files (which I know from Bolymin were compiled using PCD) are causing the problem.

I would be very grateful if someone could shed some light on this problem?
jds-pic



Joined: 17 Sep 2003
Posts: 205

View user's profile Send private message

Re: Problems linking object files - .cof and .hex not create
PostPosted: Tue Nov 16, 2010 4:10 pm     Reply with quote

Ed King wrote:
but I now believe I have the correct CCS compiler for the job

What version of compiler do you have?

jds-pic
Ed King



Joined: 16 Nov 2010
Posts: 2

View user's profile Send private message

PostPosted: Wed Nov 17, 2010 2:56 am     Reply with quote

I have version 4.114 of the IDE and PCD.

I have since been informed by Bolymin that version 4.104 has known problems with linking objects (and so I might assume that a later version may have this problem too), whereas version 4.093 is workable? Does anyone know if this is true?
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