|
|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决* T3 V. B$ T. w4 W& q# t" X; O) |
PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
6 z- J; ]5 f7 A9 i3 {$ l% `9 @( L( b1 {2 `7 k
报错如下:2 S2 V" d2 D% x1 f Y+ h3 {
'Invoking: C6000 Linker'
( r0 ]: q8 D! {4 z8 g/ U"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" : w0 ^: `+ {" v( g# p Q
<Linking>" d6 z& Z) I" y( i- Y. h
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.
6 o% ]* c# y) N) R3 G" `* O' M2 j" N. [0 W4 V
>> Compilation failure
$ R3 |& Q5 I1 [, J" _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.
. |; H- p+ ]% l# m6 R) y* Y/ `6 Q$ G2 k4 n
undefined first referenced
5 U7 ~( O6 e9 {& F# ~' t9 X symbol in file
0 }2 W$ p# V4 L. B( p- {6 m --------- ----------------
& p4 ^& X+ E2 G* T0 {7 Z8 B/ I/ L5 m _PSCModuleControl ./main.obj |
|