Other Parts Discussed in Thread: C2000WARE
主题中讨论的其他器件:test2、 C2000WARE
大家好。 我尝试以多种不同的方式包含此库文件、但无法解决此错误。 只有当我在项目目录中添加物理文件时、此问题才会得到解决。 我做错了吗?
我正在尝试在此处包含的库文件是 driverlib.lib。 我附上了构建日志以供参考。
**** Build of configuration Debug for project DLIB_TEST2 **** "C:\\ti\\ccs1250\\ccs\\utils\\bin\\gmake" -k -j 16 all -O Building file: "../main.c" Invoking: C2000 Compiler "C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcrc --include_path="C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f28003x/driverlib" --include_path="C:/CCS/TEST/DLIB_TEST2" --include_path="C:/CCS/TEST/DLIB_TEST2/misc" -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=coffabi --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c" Finished building: "../main.c" Building target: "DLIB_TEST2.out" Invoking: C2000 Linker "C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcrc -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=coffabi -z -m"DLIB_TEST2.map" --stack_size=0x200 --warn_sections -i"C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib" -i"C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f28003x/driverlib/ccs/Debug" -i"C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="DLIB_TEST2_linkInfo.xml" --rom_model -o "DLIB_TEST2.out" "./main.obj" "../F280033_flash_lnk.cmd" "C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f28003x/driverlib/ccs/Debug/driverlib.lib" -llibc.a -l"C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f28003x/driverlib/ccs/Debug/driverlib.lib" -ldriverlib.lib -l"C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f28003x/driverlib/ccs/Debug/driverlib.lib" <Linking> warning #10373-D: library "C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f28003x/driverlib/ccs/Debug/driverlib.lib" contains ELF object files which are incompatible with the TI-COFF output file. Ensure you are using the proper library. warning #10373-D: library "C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f28003x/driverlib/ccs/Debug/driverlib.lib" contains ELF object files which are incompatible with the TI-COFF output file. Ensure you are using the proper library. warning #10373-D: library "C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f28003x/driverlib/ccs/Debug/driverlib.lib" contains ELF object files which are incompatible with the TI-COFF output file. Ensure you are using the proper library. warning #10373-D: library "C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f28003x/driverlib/ccs/Debug/driverlib.lib" contains ELF object files which are incompatible with the TI-COFF output file. Ensure you are using the proper library. warning #10373-D: library "C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f28003x/driverlib/ccs/Debug/driverlib.lib" contains ELF object files which are incompatible with the TI-COFF output file. Ensure you are using the proper library. warning #10373-D: library "C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f28003x/driverlib/ccs/Debug/driverlib.lib" contains ELF object files which are incompatible with the TI-COFF output file. Ensure you are using the proper library. warning #10373-D: library "C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f28003x/driverlib/ccs/Debug/driverlib.lib" contains ELF object files which are incompatible with the TI-COFF output file. Ensure you are using the proper library. warning #10373-D: library "C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f28003x/driverlib/ccs/Debug/driverlib.lib" contains ELF object files which are incompatible with the TI-COFF output file. Ensure you are using the proper library. undefined first referenced symbol in file --------- ---------------- _GPIO_setAnalogMode ./main.obj error #10234-D: unresolved symbols remain error #10010: errors encountered during linking; "DLIB_TEST2.out" not built >> Compilation failure makefile:139: recipe for target 'DLIB_TEST2.out' failed gmake[1]: *** [DLIB_TEST2.out] Error 1 makefile:135: recipe for target 'all' failed gmake: *** [all] Error 2 **** Build Finished ****

