|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决% T7 a5 r- z. b3 v& J- I
PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);0 F0 Q& v; P8 W3 Y6 d& n2 R* B
/ ]6 \. L3 f; M/ L5 H, N- o
报错如下:
! h" X3 o+ _* n {7 @5 a'Invoking: C6000 Linker'
. |4 |) C8 ^8 O- K* C! e"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"
% g' m" z8 p! z( k1 f$ T<Linking>
9 n, _$ w2 a* A) m$ g( i: k( Mwarning #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.
% Z1 T6 f; w0 `4 F2 X2 e0 \. U8 _& E O1 j z0 i
>> Compilation failure
% ~; l5 G4 u- D& o1 a, ?8 \ cwarning #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.
& E5 Y: t- A9 b- t# C
. z" Y$ h9 u$ Z% D8 j undefined first referenced
4 v; @$ k: { W5 e9 ?' X% _- Y- h symbol in file % a4 d" Q0 {! L8 v1 }! P
--------- ----------------
[, t% V7 f1 f6 L" v( n6 A _PSCModuleControl ./main.obj |
|