cancel
Showing results for 
Search instead for 
Did you mean: 

Help again: Cosmic linker problem!

marcosarti29
Associate II
Posted on February 26, 2007 at 13:02

Help again: Cosmic linker problem!

5 REPLIES 5
marcosarti29
Associate II
Posted on February 25, 2007 at 06:09

I dont understand what's the problem!

I use ST7Lite19 and

I have convert my project Hiware to Cosmic.

The single file.c compile but whan I try to ''Built'' I have alwais this error:

clnk -lC:\Programmi\COSMIC\CXST7_16K\Lib -o Debug\new_st7 -mDebug\new_map Debug\new_lkf

#error clnk Debug\new_lkf:1 symbol c_xlcmp not defined (Debug\interrupt_vector.o )

#error clnk Debug\new_lkf:1 symbol c_lreg not defined (Debug\interrupt_vector.o )

#error clnk Debug\new_lkf:1 symbol c_uitol not defined (Debug\interrupt_vector.o )

I use default linker setting for small memory model.

I use crtsx.st7 startup file.

In attachment my .lkf file.

What's the problem?Where is c_xlcmp symbol? :-[ :-[ :|

Thanks a lot!

________________

Attachments :

new_29.lkf : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0FS&d=%2Fa%2F0X0000000bW7%2Fv9fAHkEUgAP0R5HKqbtSvK.0e1nL_L8GFBXwk_QJyvo&asPdf=false
luca239955_st
Associate III
Posted on February 25, 2007 at 12:47

looks like you are using long (and/or float) and not linking the right libraries.

Change

#

libims.st7

libm.st7

#

with

#

libfms.st7

libims.st7

libm.st7

#

and it should work.

Regards,

Luca

marcosarti29
Associate II
Posted on February 25, 2007 at 16:38

Thanks a lot for your help! 🙂

I dont use long or float. I have same error! :o

I use only 2 var in eeprom defined:

@eeprom unsigned int EEPROM[0x40];

Other vars are:

unsigned int

or

unsigned char

without istruction '#pragma'. :-[

Thanks again!!! 😉

luca239955_st
Associate III
Posted on February 26, 2007 at 05:11

please contact me offline:

mailto:luca.ubiali@cosmic.fr

Regards,

Luca

luca239955_st
Associate III
Posted on February 26, 2007 at 13:02

just in case someone is following this thread, the problem was due to the order of linking: libraries were linked before an object module that contains references to library functions, hence the error.

Luca