|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决( w. l5 b/ @1 [6 J/ V
PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);7 n3 C; e: E- {* F. k( g; T$ f8 ~$ \& R* g$ c
& _5 C5 l/ N& }
报错如下:
- |9 L3 J1 }$ S# N'Invoking: C6000 Linker'
: g, v, X1 F8 o) ]% G2 a% |"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" + ^; l! ~, \5 `/ a9 z l7 m
<Linking>
% |. b! r' u! W, l5 j% q4 a: }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.
% U; t8 F$ N- f- `9 Y! Q" p" D3 I t. O5 G9 K9 L1 l$ Z6 V7 O# a
>> Compilation failure
5 D6 o* i, x' v2 I/ @7 ?% j3 wwarning #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.
2 P! h q( {& M7 a! ~7 V7 ~) s' T! s% X& ~/ V& Q8 B& k# O& J
undefined first referenced
3 P! v6 E9 [3 @* P- p symbol in file
9 w. W' Z+ N9 y% D --------- ----------------3 O5 y* N9 b2 r! m( ^
_PSCModuleControl ./main.obj |
|