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.
工具/软件:Code Composer Studio
我升级到了最新的编译器。 在几年前对这个问题的 George Mock 上一个回答(https://e2e.ti.com/support/tools/ccs/f/81/t/472734)中、解决方案是将 libc.a 文件移动到列表的末尾。 此解决方案似乎不再使用 Mac 上的最新编译器。 是否有新的解决方法、或者我是否遗漏了什么?
此致、
Neil
能否如 CCS 编译控制台中所示显示的那样显示完整编译输出(尤其是完整链接器命令)?
完整的链接器命令和错误(我删除了目标文件的长列表并放置一个占位符。 (-llibc.a "./code/src/myobjfiles 是文件的长列表)
调用:C2000链接器
"/Applications/ti/ccs910/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/bin/cl2000 /Users/nsing/TI/ControlSUITE/libs/math/FPUfastRTS/V100/lib /Applications/ti/ccs910/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib /link/DSP2833x_Headers_nonBIOS.cmd -v28 -ml -mt --float_support=fpu32 -O2 -opt_for_speed=2 -advice:performance=f28335 -g -relaxed_ansi -diag_warning=225 -diag_ram_off--display_error_number -abi=coff-excabi=-f28335 -g -relax_ab_at_ex-pf-nat_ex-ategot_ex-"-at_ex-at_info-link_ram_ram_infot_infot_infot_ine-ment-r32"-link_lib_infot_express-rm.at_express-pf-nategot_infot_ex-"-link_ex-"-pf-nat_infot_infot_infot_infot_infot_infot_infot_infot_infot_infot_infot_infot_infot_infot_infot_infot_infot_infot_infot_infot_infot_infot_in /link/ozMtrLnk.cmd /code/src/myobjfiles /Applications/ti/ccs910/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include /Users/nsing/TI/ControlSUITE/libs/math/IQmath/v160/lib
警告#10211-D:无法将/Applications/ti/ccs910/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/libc.a 存档解析为兼容库、因为未遇到输入文件
完成构建目标:"ACK_Software.out"
此命令行在目标文件之前显示-llibc.a。 您是否尝试按照 先前的建议将其移动到列表的末尾、但仍然看到错误?
您可以使用“项目属性->构建”下的“链接顺序”选项卡来控制顺序。
谢谢你。 这是我的问题。 出于某种原因、我移动了链接顺序中的 libc.a 文件、但在最近的 CCS 升级中将其重置。 我以为我检查过、但我肯定错过了它、或者看到了错误的选项卡。
此致、
Neil