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.

你好。我用TM4C123G单片机,CCS5进行编译,出现错误如下:error #10010: errors encountered during linking; "lab1.out" not built

Other Parts Discussed in Thread: TM4C123GH6PM

*** Build of configuration Debug for project lab1 ****

"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all
'Building file: ../main.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv5/tools/compiler/arm_5.1.1/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me --include_path="C:/ti/ccsv5/tools/compiler/arm_5.1.1/include" --include_path="C:/ti/TivaWare_C_Series-2.1.1.71/" -g --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="main.pp"  "../main.c"
'Finished building: ../main.c'
' '
'Building file: ../tm4c123gh6pm_startup_ccs.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv5/tools/compiler/arm_5.1.1/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me --include_path="C:/ti/ccsv5/tools/compiler/arm_5.1.1/include" --include_path="C:/ti/TivaWare_C_Series-2.1.1.71/" -g --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="tm4c123gh6pm_startup_ccs.pp"  "../tm4c123gh6pm_startup_ccs.c"
'Finished building: ../tm4c123gh6pm_startup_ccs.c'
' '
'Building target: lab1.out'
'Invoking: ARM Linker'
"C:/ti/ccsv5/tools/compiler/arm_5.1.1/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --diag_warning=225 --display_error_number --diag_wrap=off -z -m"lab1.map" -i"C:/ti/ccsv5/tools/compiler/arm_5.1.1/lib" -i"C:/ti/ccsv5/tools/compiler/arm_5.1.1/include" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="lab1_linkInfo.xml" --rom_model -o "lab1.out"  "./tm4c123gh6pm_startup_ccs.obj" "./main.obj" "C:/ti/TivaWare_C_Series-2.1.1.71/driverlib/ccs/Debug/driverlib.lib" "../tm4c123gh6pm.cmd" -l"C:\ti\TivaWare_C_Series-2.1.1.71\driverlib\ccs\Debug\driverlib.lib" -l"libc.a"
<Linking>
error #16004-D: file "C:/ti/TivaWare_C_Series-2.1.1.71/driverlib/ccs/Debug/driverlib.lib<gpio.obj>" has a Tag_PCS_config attribute value of "1" that is different than one previously seen ("0"); combining incompatible files
error #16004-D: file "C:/ti/TivaWare_C_Series-2.1.1.71/driverlib/ccs/Debug/driverlib.lib<interrupt.obj>" has a Tag_PCS_config attribute value of "1" that is different than one previously seen ("0"); combining incompatible files
error #16004-D: file "C:/ti/TivaWare_C_Series-2.1.1.71/driverlib/ccs/Debug/driverlib.lib<sysctl.obj>" has a Tag_PCS_config attribute value of "1" that is different than one previously seen ("0"); combining incompatible files
error #16004-D: file "C:/ti/TivaWare_C_Series-2.1.1.71/driverlib/ccs/Debug/driverlib.lib<cpu.obj>" has a Tag_PCS_config attribute value of "1" that is different than one previously seen ("0"); combining incompatible files
warning #10210-D: creating ".stack" section with default size of 0x800; use the -stack option to change the default size
error #10010: errors encountered during linking; "lab1.out" not built

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

**** Build Finished ****如何解决,谢谢!

  • 说实话,TMC系列,建议你换环境吧,用最版本的CCS6.CCS5一大堆问题,应该是编译器的版本问题(这个不是很确定)

x 出现错误。请重试或与管理员联系。