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.

ccslinker.opt issue in release build

Hi,

 I am using CCS Version: 4.1.2.00027  and have created a projected called Maint which uses DSP BIOS 5. The project has a configuration file called Maint.tcf.

The debug build is fine, but when I build release version it fails giving me a load of symbol redifinition errors for all the symbols defined in the Maint.tcf file.

 

When I compare the linker.opts file for the debug and release version i find that the maint.cmd has been linked twice. Any ideas why this happens?

Here are the linker.opts file

*********************************

Debug

*********************************

-mv64+ 

-g 

--define="_DEBUG" --define="TMSC64" 

--diag_warning=225 

--diag_suppress=1 --diag_suppress=9 

-z 

-m"DABC_Maint.map" 

--warn_sections 

-i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/lib" -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" -i"C:/Program Files/Texas Instruments/bios_5_40_02_22/packages/ti/rtdx/lib/c6000" -i"C:/Program Files/Texas Instruments/bios_5_40_02_22/packages/ti/bios/lib" 

--reread_libs 

--rom_model 

-l"./Maintcfg.cmd" "./Maintcfg_c.obj" "./Maintcfg.obj" "./source/file1.obj" "./source/fle2.obj" "./source/file3.obj" "./source/main.obj"  -l"rts64plus.lib" -l"C:\work\dsp\software\build\DABC\CodeComposerStudio\l_C64\Debug\l_C64.lib"  -l"C:/ti/C6400/dsplib/lib/dsp64x.lib" 

 

*********************************

Release

*********************************

-mv64+ 

-g 

-O2 

--define="TMSC64" 

--diag_warning=225 

--diag_suppress=1 --diag_suppress=9 

-z 

-m"DABC_Maint.map" 

--warn_sections 

-i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/lib" -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" -i"C:/Program Files/Texas Instruments/bios_5_40_02_22/packages/ti/rtdx/lib/c6000" -i"C:/Program Files/Texas Instruments/bios_5_40_02_22/packages/ti/bios/lib" 

--reread_libs 

--rom_model 

-l"./Maintcfg.cmd" -l"./Maintcfg.cmd" "./Maintcfg_c.obj" "./Maintcfg.obj"  "./source/file1.obj" "./source/fle2.obj" "./source/file3.obj" "./source/main.obj"  -l"rts64plus.lib" -l"C:\work\dsp\software\build\DABC\CodeComposerStudio\l_C64\Debug\l_C64.lib"  -l"C:/ti/C6400/dsplib/lib/dsp64x.lib" 

 

Thanks and Regards,

 

Pavan