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.

sprintf - undefined symbol issue

Other Parts Discussed in Thread: CCSTUDIO

I'm using CCS v3.1 and getting linking issues when using "sprintf".

I've included following lib path while linking:

 

c:\CCStudio_v3.1\C6000\cgtools\bin\lnk6x -z -a -c -mDebug\dfc8_ram.map -o Debug\dfc8_ram.out \-w -x -ic:\CCStudio_v3.1\bios\bios_5_20_05_34\bios_5_20_05\packages\ti\rtdx\lib\c6000 -ic:\CCStudio_v3.1\c6000\csl\lib -ic:\CCStudio_v3.1\C6000\xdais\lib -ic:\CCStudio_v3.1\bios\bios_5_20_05_34\bios_5_20_05\packages\ti/bios/lib -ic:\CCStudio_v3.1\C6000\cgtools\lib

.....

dfc8_ram_linker.cmd

undefined                        first referenced
 symbol                              in file
---------                        ----------------
_sprintf       
                  ..\..\..\components\lDSP_CORTINA\C6410_T40\Debug\highlvl.lib

>>   error: symbol referencing errors - 'Debug\dfc8_ram.out' not built

What can be done to resolve this issue?

printf is working fne so I would assume that all required libs are present. Why there is an issue with sprintf alone?

 

Thanks !

  • Is one of the standard runtime libraries (rts6400*.lib) part of your link? Is it either added  directly to the project or specified within the linker command file? The link map file should also show if this library is linked and which members of the library are pulled into the link.