|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
K/ S- e! D( k4 ~4 S4 k; k PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);$ g; B" {# m4 r# C6 p& i0 A6 o% E
5 A6 p3 I$ a- Z# l, P报错如下:/ S+ _5 ]7 [6 M; e- V5 m
'Invoking: C6000 Linker'- \: x4 g R/ k/ [) F
"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"
# C, u( @! S& n. @: c3 P<Linking>
% q" w& q. K0 `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.
; f% p" ~/ T+ N, @2 T3 @( x2 L, ^# P, h
>> Compilation failure: ]5 K- I0 m! w6 V0 [4 q
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.
3 t3 ]+ j E, B. \- `/ G& Z" l
& G/ U0 J# k" V( D0 S; s: Z1 t undefined first referenced2 [- _$ C+ a! h2 U8 @
symbol in file : F3 h5 x X; [5 S* y: r6 m8 ]! j8 j
--------- ----------------. _* Q9 A9 N1 y9 I: f7 H5 K* y) g
_PSCModuleControl ./main.obj |
|