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.
Tool/software: Code Composer Studio
I upgraded to the latest compiler. In George Mock previous answer to this issue years ago (https://e2e.ti.com/support/tools/ccs/f/81/t/472734, the solution has been to move the libc.a file to the end of the list. This solution no longer seems to work using the latest compiler on the Mac. Is there a new fix for this or am I missing something?
Regards,
Neil
The full linker command and error ( I removed the long list of my object files and put one placeholder. (-llibc.a "./code/src/myobjfiles" was a long list of files)
Invoking: C2000 Linker
"/Applications/ti/ccs910/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -O2 --opt_for_speed=2 --advice:performance=all --define=F28335 -g --relaxed_ansi --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi -z -m"Ozip_ACK_Software.map" --stack_size=0x600 --warn_sections -i"/Users/nsing/TI/ControlSUITE/libs/math/FPUfastRTS/V100/lib" -i"/Users/nsing/TI/ControlSUITE/libs/math/IQmath/v160/lib" -i"/Applications/ti/ccs910/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib" -i"/Applications/ti/ccs910/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" --priority --reread_libs --diag_suppress=16002 --diag_wrap=off --display_error_number --xml_link_info="Ozip_ACK_Software_linkInfo.xml" --symbol_map="_sqrtf=_sqrt" --rom_model -o "ACK_Software.out" -llibc.a "./code/src/myobjfiles" "../link/DSP2833x_Headers_nonBIOS.cmd" "../link/ozMtrLnk.cmd" -lIQmath_fpu32.lib -lrts2800_fpu32_fast_supplement.lib -lrts2800_fpu32.lib
<Linking>
warning #10211-D: cannot resolve archive /Applications/ti/ccs910/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/libc.a to a compatible library, as no input files have been encountered
Finished building target: "ACK_Software.out"
This command line shows -llibc.a before the object files. Did you try moving it to the end of the list as previously recommended and still see the error?
You can control the order using the Link Order tab under Project Properties->Build.
Thank you. That was my problem. For some reason I had moved the libc.a file in the link order but it was reset on a recent CCS upgrade. I thought I checked that but I must have missed it or was looking at the wrong tab.
Regards,
Neil