This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linker Errors.....help...??

Guru 15580 points

Sorry if this is trivial, but I'm new to this whole game.....

I have the following two linker errors:

===================================================

error: cannot find file "usbstk5515bsl.lib"

I have included a link to this library file in my root project directory, but the linker does not seem to find it....?? Do I need to copy the actual library file to the project directory?

=============================================

fatal error: file "C:/Program

Files/TI2/ccsv4/emulation/boards/usbstk5515_v1/lib/usbstk5515bsl.lib<usbstk5

515_led.obj>" has a Tag_Memory_Model attribute value of "2" that is

different than one previously seen ("3"); combining incompatible files

What is a Tab_Memory_Model and how do I set it?

=============================================

Thanks for your help.

MikeH

  • Hi Mike,

    Try adding the library to the (right click on project): Build Properties->Tool Settings->C2000 Linker->File Search Path.

    I'll have to look into the other question regarding the Tag_Memory_Model

    ki

     

  • Ki,

    Turns out I had inadvertently inlcuded the library file name under Build Properties->Tool Setting->C5500 Linker->File Search Paths->Include Library  file or command as input. When i deleted this setting the linked library name compiled and linked OK.

    I solved the Tag_Memory_Model problem by setting the Build Properties->Tool Setting->Runtime Model Options->Specify Memory Model to "large" instead of "huge".

    thx

    Mike

     



  • hello everyone

    any idea what is going on? screenshot attached

    looks like line 185 in my source code(rather trivial) compiles just fine but 
    error appears on linking stage.. why?

    thank you

     

  • Most likely you are missing a library that defines the IQ12mpyI32int symbol. The file compiled fine because it found the header file but not the library during link.

    ki