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.

Am1808 with Sysbios and ndk, ndk.lib and rtsv5_A_le_eabi.lib “printf” redfine?

Other Parts Discussed in Thread: AM1808

i want to use ndk in am1808   when i link ndk.lib , there is a linking error:

'Building target: CronusArm.out'
'Invoking: TMS470 Linker'
"C:/ti/ccsv5/tools/compiler/tms470/bin/cl470" -mv5e -g --diag_warning=225 --display_error_number --no_warnings -me --abi=eabi --code_state=32 -z -m"CronusArm.map" --warn_sections -i"C:/ti/ccsv5/tools/compiler/tms470/lib" -i"C:/ti/ccsv5/tools/compiler/tms470/include" --reread_libs --rom_model -o "CronusArm.out" -l"./configPkg/linker.cmd" "./L138/package/package_L138.obj" "./hal/common/Utils.obj" "./hal/common/CircleBuf.obj" "./hal/gpio/GpioCtrl.obj" "./hal/i2c/I2CCtrl.obj" "./hal/main.obj" "./hal/spi/SpiCtrl.obj" "./hal/spiflash/SpiFlashCtrl.obj" "./hal/system/SystemCtrl.obj" "./hal/uart/UartCtrl.obj" "./src/NetWorkService.obj" -l"libc.a" "../linkerEx.cmd" "../lib/hal.lib" "../lib/ndk.lib" "../hal/libs/drivers.lib" "../hal/libs/platform.lib"
<Linking>
error #10056: symbol "printf" redefined: first defined in
"C:\ti\ccsv5\tools\compiler\tms470\lib\rtsv5_A_le_eabi.lib<printf.obj>";
redefined in "../lib/ndk.lib<miniPrintf.oe9>"
error #10010: errors encountered during linking; "CronusArm.out" not built

>> Compilation failure
gmake: *** [CronusArm.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

why??????  why rtsv5_A_le_eabi.lib<printf.obj> and   ndk.lib<miniPrintf.oe9>  in this error?

  • Hi,

    I would expect the app to link fine. What version of the compiler are you using ? I tried this on my setup but did not see any link errors. I was of course using a newer compiler (v5.2.2).

    Best,
    Ashish
  • thanks for your reply..you are awesome~ my CCS version is Version: 5.1.0.09000 ,maybe i can send my project to you(may i got your email-address ?)...and i find the src of ndk in MiniPrintf.c and the rtssrc in printf.c ...the same function of printf()... George Mock (also ti employee) reply that the build configuration someting wrong... can you help me ? THANKS