|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
' o! s* J) u. w+ G% N! ? PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
3 j9 e! B- F% X9 O
1 l( E1 A1 z) P4 [4 g! J" K& T$ h7 v报错如下:
2 r" U. |0 M+ t9 O'Invoking: C6000 Linker'
' m# M# O2 A7 l' y* n" 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"
) }+ e0 x$ N3 E+ L9 v8 V<Linking>
9 s% [7 ~. c! Y& Bwarning #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.+ o$ ]" ] Q0 E8 U. s# w/ ~
( [1 s6 X' A. o6 B2 A6 G
>> Compilation failure
& ?! F3 U. m1 z: i" u: twarning #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.
5 }' o# s1 ~5 R; x& C+ t
1 y z3 T3 u! j+ F, Y1 c8 ~, D undefined first referenced
( e2 k4 @% w3 o6 R symbol in file ! E: U D9 }; g8 m7 c9 x- W! U* U
--------- ----------------& ?8 l- j. {# o% X% ]
_PSCModuleControl ./main.obj |
|