CW for HC08 v2.0 Link Error

CW for HC08 v2.0 Link Error

Post by dhenso » Fri, 02 Jul 2004 04:32:59


I am getting link error L1818 stating that my functions are duplicated
in module1.c.o and module1.c.o (yes it is stating that I am
duplicating the functin in the same object file).

I have tried putting the function prototypes in an include file, at
the the top of the file, and not having prototypes at all. I have
verified that the function is prototyped only once and that there is
only one function by that name. I have reduced the link down to a
single file but nothing seems to work.

I am a newbie at using Codewarrior and i don't program often in C.
Thanks in advance for help in pointing out what I might have done (or
not done) to cause this error.

D Henson
 
 
 

CW for HC08 v2.0 Link Error

Post by dhenso » Fri, 02 Jul 2004 05:02:51

I am getting Link Error L1818 - stating that my functions are
duplicated in my object files -
Link Error L1818: symbol 36 - function1 is duplicated in object1.c.o
and object1.c.o (yes it is showing the same object file).

The file(s) all compile correctly. I have tried prototyping the
functions in the file, in a header file and not using prototypes at
all (which causes a compiler error). I have reduced the link down to a
single file and nothing seems to work.

I am new to using CW and I don't program often in C. Thanks in advance
for pointing out what I might have done (or not done) to cause this
error.

D Henson

 
 
 

CW for HC08 v2.0 Link Error

Post by dhenso » Fri, 02 Jul 2004 05:03:19

I am getting Link Error L1818 - stating that my functions are
duplicated in my object files -
Link Error L1818: symbol 36 - function1 is duplicated in object1.c.o
and object1.c.o (yes it is showing the same object file).

The file(s) all compile correctly. I have tried prototyping the
functions in the file, in a header file and not using prototypes at
all (which causes a compiler error). I have reduced the link down to a
single file and nothing seems to work.

I am new to using CW and I don't program often in C. Thanks in advance
for pointing out what I might have done (or not done) to cause this
error.

D Henson
 
 
 

CW for HC08 v2.0 Link Error

Post by Erich Styg » Tue, 06 Jul 2004 23:27:48

Maybe this helps:
delete the *_Data folder in your project to get rid of temporary files.

Erich
 
 
 

CW for HC08 v2.0 Link Error

Post by dhenso » Thu, 08 Jul 2004 02:29:11

Deleting the *_Data folder results in the folder being created again
when I start the project. The *_Data folder also holds the object
files to be linked.

Don
 
 
 

CW for HC08 v2.0 Link Error

Post by Erich Styg » Thu, 08 Jul 2004 15:41:13

Don,
yes, the folder is automatically created, and CW places its intermediate
files into it.
Not sure from your writing below if this helped.
Maybe check as well the 'bin' subfolder and delete the files in it?

Otherwise: send me your zipped files to my email address (strip off the
NOSPAM_ part), and I will have a look.

Erich