|
|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
/ F( o& l. l; Q# z6 S: D" P$ e PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
" W |' H$ q u* \* J1 P
6 ?2 T/ V, Z0 K# |$ j: L报错如下:
! Z' q- A9 m, R. J( F'Invoking: C6000 Linker'1 `+ Q# W+ l, s9 x; c
"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" 3 H: R9 s6 P) c) W* X0 r i. L3 X
<Linking>; W$ x& T# {5 }4 l
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.
" @* L8 R# w+ w- i% w" G- ~5 U0 q" {& Z( i+ c& V
>> Compilation failure
/ P& @/ U8 R( N+ ]) uwarning #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.% R7 e* Z( M( Q/ V' a7 q$ M& v% ~
% P* D# x+ q7 ?0 l
undefined first referenced
4 U! P: e8 u) h) y) r symbol in file
( @$ k% G! x) N* u% e --------- ----------------" B( t q4 X' h
_PSCModuleControl ./main.obj |
|