|
|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
+ A* x1 Q7 f. t( Q- x3 x$ P PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);& Q! W+ f; x; M/ k
) v! y6 R5 q& s: T% E* f" i' t报错如下:
! y- c; H0 |0 n9 T" X'Invoking: C6000 Linker'
# V$ `4 X4 r/ H6 \"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"
* b% p y% q h7 u, \) @8 g: ^<Linking>
" B1 C2 z8 i( b& m) X3 {& Cwarning #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 Y3 |' B: i6 V! e3 z& i$ {/ q( g6 K1 [
>> Compilation failure
& L; G+ m( ^- K& J7 g" q* e0 swarning #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.
v0 f( G6 b8 k2 ?+ g& m- ~# Y& m* ~" w1 t$ k( U
undefined first referenced2 ` [* [: F: r1 ]- L3 _& c3 w
symbol in file $ A' v. V3 Z- J. P/ i
--------- ----------------7 U) Z* c3 Y3 G! Q0 b" T1 E
_PSCModuleControl ./main.obj |
|