|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
- ]% a( v5 S/ T" \: w4 v( }* L6 t PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
T( q6 a7 U# |2 A5 N/ I2 \: h/ B8 z$ S( T5 B% O1 [8 W$ u
报错如下:( p( F! y- k+ k6 _7 i" n
'Invoking: C6000 Linker'
+ Z) i+ x/ }1 T* X( Z! |8 Y 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" * t' i' \ B: \* p' _" r0 \
<Linking>
5 y! n q% F% }+ K/ @: @' C- D0 ewarning #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.. |! H3 `6 a+ Y# {: D O; n
. [- W4 n2 f9 z% t; m: k% q8 w
>> Compilation failure
$ R5 W$ i1 D: }. E2 k# jwarning #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.
% h* l4 B; S6 ?/ i1 m4 f, y! N/ o3 Q) S0 e! v
undefined first referenced
2 Y$ z! s8 ^4 N& Y5 X9 F f u symbol in file
* o" l u2 k9 d0 S! m$ b --------- ----------------
: r* p+ y5 g1 g0 Y0 s8 W$ D _PSCModuleControl ./main.obj |
|