|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
( y* o, Y( C. y( C" K w3 } PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
$ l/ T+ z* S( L B: |& \- k2 N3 [% M: ]3 T8 C2 U
报错如下:+ J* n8 ]3 h$ }* Y
'Invoking: C6000 Linker'& |! g0 I8 }% ?* H! f4 n
"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" - N. [0 Y/ N% }0 a5 u! v
<Linking>( v. B/ q: k0 a& m# r
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.' J! X0 |% Y- h7 o' Q
4 h+ ?/ y( m! ?. l5 R>> Compilation failure
3 w6 p& l0 f p4 N' Nwarning #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.3 n) b% z3 S1 C* Y( I
z0 R& W! a+ g+ m A$ T
undefined first referenced9 @' S! I5 `1 K7 [
symbol in file 3 q2 I7 s) m% L& T: P; u
--------- ----------------
1 g9 b0 R1 w. }2 Q- _% J% N _PSCModuleControl ./main.obj |
|