|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决* h% n+ o5 c: l: i( k' Z7 c' S
PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
! v' ~% Z' o D- M4 c( a& {% H5 c1 I6 i1 y, E
报错如下:( L% R/ |$ r6 L2 t
'Invoking: C6000 Linker'! ]8 B, A8 X- |# i6 h1 H& W* V
"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" 1 b& i+ S! t: I, R) i( R$ j
<Linking>
6 [8 ?" e' L5 p+ v- F3 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.5 X/ _0 X; \% V* P/ x7 q
5 E8 V3 X2 Q* ]8 h* w
>> Compilation failure% j K/ y- p$ t, y6 D" Y
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.+ O& ]7 H* J) M. `7 `* `
7 f$ R* @% l5 H R! R( N* a undefined first referenced/ o7 A3 [! A4 m, X) {/ _. U
symbol in file . j3 e/ g% V. J; c, O
--------- ----------------
. @ X0 L, ^* y K; O* m _PSCModuleControl ./main.obj |
|