|
|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决+ W' o" z) U+ c* O3 ]1 F5 \8 J& ~
PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
& B6 {# R2 J2 L9 ^; B O+ ?; G
% [, {* I6 x, k0 X+ _报错如下:
; f l; t" E' x L, a$ g) }'Invoking: C6000 Linker' @: r: m6 q9 `, t
"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"
$ i: B" r: _1 n) b) D3 |<Linking>
* V( z8 P2 @( L' }6 O; w+ Awarning #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.
1 B& x, j% {$ ?. W% t' k
+ R' W( v n! ?>> Compilation failure
% {8 f) P% K. {$ V6 bwarning #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.
b2 I+ ^5 G2 Z
3 U2 m: z2 f2 `4 g7 T- {4 l6 {1 } undefined first referenced
/ h% y2 Q, m! p0 j8 n symbol in file
3 E/ S& J" z, {) t( D --------- ----------------$ m. y0 F0 Q% r W4 D, I
_PSCModuleControl ./main.obj |
|