|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
' e# b8 P* k J9 V- k PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
. e; T0 Y, r9 [/ I; o7 P2 L7 b6 A) u/ ?/ x
报错如下:
% \8 Z( c! ^% A& ^ J) m'Invoking: C6000 Linker'; E' d8 [- E! y
"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"
/ Z- L6 o$ e# _/ C! G<Linking>
) X7 Q* f+ t _- s7 |. w, Mwarning #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.
% t" |' P* ?. ~$ I/ e
" I6 _7 t" o! t1 Z3 O>> Compilation failure
& m+ `# d5 K: K3 Wwarning #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.9 D& w9 q" ?' l; ?# v4 k) R% G1 h. Z& D
6 h5 I% s! o! b+ [) p) F2 j
undefined first referenced
& u8 _+ z0 K- X7 Q symbol in file
. g. N3 A% S: o: m4 a --------- ----------------
) N, i9 u; D1 V$ b( ]7 {: d8 u( U _PSCModuleControl ./main.obj |
|