|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决% [% Y$ v- l, Z7 D. j: t" C4 |% v
PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
2 o$ @5 {, ]/ x! H$ ~) ~
. x& X6 @4 X* J1 P4 g" e报错如下:0 o% V4 t4 f! o# F7 q8 @
'Invoking: C6000 Linker'2 ~. m( j* I/ O' P
"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" 6 I, ~7 l! N; e1 a
<Linking>
/ b1 J) k0 G$ X" I% }- | ]0 jwarning #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.
- d/ T; o0 |3 e2 y, ~5 S: Q& R: O% O& _
>> Compilation failure( j- Q+ G% U. K9 J+ B
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.
9 Y8 a9 [( K: U0 b$ J' x8 `& I* _) b6 r3 t
undefined first referenced) n) i2 }- w" J; H% K
symbol in file 3 k" z( Z! S6 F9 @
--------- ----------------1 F1 @: E. Q8 Y7 `8 A3 {
_PSCModuleControl ./main.obj |
|