|
|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
2 T2 T6 A9 ~; F' T1 ]2 [$ { PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);7 \7 ^& p& n; Z/ Q% P
, a4 b. |" L! I7 n4 f报错如下:* J* H* a9 L. h5 s. e3 u& u2 ^
'Invoking: C6000 Linker': U5 @& x4 x6 E$ O' B, l S
"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" # H$ D( E2 u$ u" ?
<Linking>
: e& O3 \) f' @0 e7 H* Q$ Kwarning #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.
/ _/ j4 y- Q# x" _+ Q! y* L; B: O
>> Compilation failure
9 P1 r/ | q0 M: d1 Qwarning #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.* `! \7 t+ @( w I- q
- t: T) i! E9 F( m0 g undefined first referenced
4 K$ B% f+ L: m$ T- L0 J7 o4 @6 M/ T7 c# d symbol in file + @. a' {+ B' z
--------- ----------------
. r) h0 \" {* m; ~0 b1 J _PSCModuleControl ./main.obj |
|