|
|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
) s9 I9 o+ F) F4 o0 W6 n) Y PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);! n' q- i. J+ o' Q, O4 u) ~
) |6 g( q$ V/ H
报错如下:4 [ \ V* c$ ^5 \& i
'Invoking: C6000 Linker'
2 R3 y& H" B% ]8 E; _% g9 k"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" - e. B b3 x! I0 O* x2 K: Y
<Linking>1 [# w, [: q6 l& b# Q6 ]$ Z7 o" E* T, J6 @
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., q. n. H5 y4 W. B! C8 u% J3 }
2 j% I5 E( k* ~# M5 I>> Compilation failure
* K5 k4 j. X& D. {3 u7 ~$ t awarning #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.) i0 D8 g9 E1 P+ b# g/ j0 D1 d
% O7 X/ R' R. V1 S6 } undefined first referenced: s: J& l9 h8 b6 \- `2 [1 ?
symbol in file ( y- m' u/ `7 w1 n9 A- h6 C" q9 p
--------- ----------------
f5 a3 o* N& N _PSCModuleControl ./main.obj |
|