|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
?7 f" S) Y; d PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);, r6 O; c' S, V! y8 A
6 b6 S4 ?- H! x: o) q报错如下:
5 q1 m5 B8 P6 W+ ^'Invoking: C6000 Linker'5 ~( |8 F6 O5 {9 f3 I) |: n$ ]
"C:/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6740 --abi=coffabi -g --define=omapl138 --display_error_number --diag_warning=225 --diag_wrap=off -z --stack_size=0x800 -m"HelloWorld.map" --heap_size=0x800 -i"C:/ti/ccsv5/tools/compiler/c6000_7.4.4/lib" -i"C:/ti/ccsv5/tools/compiler/c6000_7.4.4/include" --reread_libs --define=DSP_CORE=1 --warn_sections --display_error_number --diag_wrap=off --xml_link_info="HelloWorld_linkInfo.xml" --rom_model -o "HelloWorld.out" -l"./configPkg/linker.cmd" "./main.obj" "../OMAPL138.cmd" -l"C:\ti\OMAPL138_StarterWare_1_10_04_01\binary\c674x\cgt\omapl138\drivers\Debug\drivers.lib" -l"libc.a" . H0 x; p9 h# k: S
<Linking> E0 J- m/ m$ Y/ s% K3 ?
warning #10373-D: library "C:\ti\OMAPL138_StarterWare_1_10_04_01\binary\c674x\cgt\omapl138\drivers\Debug\drivers.lib" contains ELF object files which are incompatible with the TI-COFF output file. Ensure you are using the proper library.8 I U9 x, X& f8 Y f
$ p8 N i/ C* V Z0 P& Z7 s9 p
>> Compilation failure6 _2 c; h* e2 T5 x
warning #10373-D: library "C:\ti\OMAPL138_StarterWare_1_10_04_01\binary\c674x\cgt\omapl138\drivers\Debug\drivers.lib" contains ELF object files which are incompatible with the TI-COFF output file. Ensure you are using the proper library.
; y( w9 J) |$ Z7 {7 p# q5 m" }9 I( W' s2 e6 Q ^& v: |
undefined first referenced5 g+ I1 v( Q' l: |
symbol in file
: P; S$ L" _7 a5 ]" K/ O --------- ----------------8 L% e' P7 \2 i5 c2 x6 _. c
_PSCModuleControl ./main.obj |
|