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.

[参考译文] CCS/PROCESSOR-SDK-OMAPL138:编译器未解析符号

Guru**** 2999690 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/926034/ccs-processor-sdk-omapl138-compiler-unresolved-symbol

器件型号:PROCESSOR-SDK-OMAPL138
Thread 中讨论的其他器件:OMAPL138

工具/软件:Code Composer Studio

您好!

我 正在使用 CCS 1、 但遇到未解析的符号错误  

说明如何解决此问题 我正在使用 staterware gpioCardetect 示例我添加并链接包含文件。

 


****为项目测试构建配置调试****

"C:\\ti\\ccs1010\\ccs\\utils\\bin\\gmake"-k -j 4 all -O

编译文件:"../main.c"
调用:ARM 编译器
"c:/ti/ccs1010/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armcl -mv5e -code_state=32 -me --include_path="C:/Users/OWNER/workspace_v10/test --include_path="C:/ti/OMAPL138_StarterWare_1_10_04_01/include --include_path="C:/ti/OMAPL138_StarterWare_1_10_04_01/include/hw --include_path="C:/ti/OMAPL138_StarterWare_1_10_04_01/include/c674x/omapl138 --include_path="C:--include_path="C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/include --define=omap=p:g="c:pred_warning="-proc-raination_rebuild_daprination_daprinating="-us.probag_us.tran_us_us.tran_ove.come"--probag="-pred_us_us_remon_code.g=us_over-ination="-pred_prob_
建筑完工:"../main.c"

构建目标:"test.out"
调用:ARM 链接器
"c:/ti/ccs1010/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armcl -mv5e -code_state=32 -me -define=omappl138 -g -diag_warning=225 -diag_wrap=off -display_error_number -z -m"test.map"-heap_size=0x800 -stack_size=0x800 -i"/ti/ccs1010/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/lib -iexclus_exclus_ram_line.xml"-link_ram_out-"-line_display_ram_line.xml-lineparecn_line_display_line.xml"/ti/ccs1010/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/include -link_ram_ram_out.rom-rom-out.rom-line_remot_line_display_line_display_line_display_lineps.rom-lineps.intrack_line.xml-lineps.


未定义的首次引用
符号
------ --------
GPIOBank6Pin12PinMuxSetup ./main.obj
GPIODirModeSet ./main.obj
GPIOPinWrite ./main.obj
PSCModuleControl ./main.obj

错误#10234-D:未解析的符号仍然存在
错误#10010:链接期间遇到错误;未生成"test.out"

>>编译失败
Makefile:141:目标'test.out'的配方失败
gmake.1]:***[test.out]错误1.
Makefile:137:目标'all'的配方失败
gmake:***[全部]错误2.

****构建完成****

说明资源路径位置类型
#10010链接期间遇到错误;"test.out"未生成测试 C/C++问题
#10234-D 未解析的符号仍然是测试 C/C++问题
gmake:***[All]错误2测试 C/C++问题
gmake[1]:***[test.out]错误1测试 C/C++问题
未解析的符号 GPIOBank6Pin12PinMuxSetup、首先在./main.obj 测试 C/C++问题中引用
未解析的符号 GPIODirModeSet、首先在./main.obj 测试 C/C++问题中引用
未解析的符号 GPIOPinWrite、首先在./main.obj 测试 C/C++问题中引用
未解析的符号 PSCModuleControl、首先在./main.obj 测试 C/C++问题中引用