Skip to main content
Visitor II
February 26, 2007
Question

Help again: Cosmic linker problem!

  • February 26, 2007
  • 5 replies
  • 871 views
Posted on February 26, 2007 at 13:02

Help again: Cosmic linker problem!

    This topic has been closed for replies.

    5 replies

    Visitor II
    February 25, 2007
    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
    Visitor II
    February 25, 2007
    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

    Visitor II
    February 25, 2007
    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!!! ;)

    Visitor II
    February 26, 2007
    Posted on February 26, 2007 at 05:11

    please contact me offline:

    mailto:luca.ubiali@cosmic.fr

    Regards,

    Luca

    Visitor II
    February 26, 2007
    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