|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
% h$ | t% |9 i1 A# w6 U PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);0 _' B! R* L7 E" w3 J
& L! z, G/ I- }# q4 F1 J# t
报错如下:
& i& @2 t1 k: ^0 p'Invoking: C6000 Linker'
+ F$ ]& n, ~3 h# ~1 w# V4 \"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$ j/ m% h# S& O4 r8 f8 ^
<Linking>
& d* g( Y, n9 M# @1 }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.
; a) H3 J8 z1 d5 ^! i( l5 u8 [3 Q! \' H+ t
>> Compilation failure$ F- f; b1 l3 Z' R( b
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.; s$ G, L+ d3 e+ |8 m; c. Z, s0 L
. }2 a: p7 @ l- d/ _) c
undefined first referenced
. Y, k& `! L. E! ?5 Y symbol in file
( f( K2 f% q( Z( s/ t0 | --------- ----------------
& X3 h- i6 V/ l: [5 n' H _PSCModuleControl ./main.obj |
|