|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
5 S/ b$ P5 O' G: i; p$ w- s PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
6 E+ `+ Q6 V0 Z! f4 N- f2 `: M/ b) j; v7 Q( C; [
报错如下:; k3 I* |* I3 _6 H1 g" \" J
'Invoking: C6000 Linker'
* m6 t% _0 B/ s k, p"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" " D! t+ C% ^8 ~( g7 U
<Linking>
* G, \. ], J/ a, E# Zwarning #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.
- Z b! \0 {9 Z& X2 M3 B, W S2 B5 i. J6 Y3 R
>> Compilation failure
+ i; m* h/ s" Z6 pwarning #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.
! T; k! O! [; P
' n3 E0 {2 Y" B1 _ undefined first referenced" T3 B1 I6 Q4 ]& | [0 P5 I- g
symbol in file ) c3 B* l' a8 d2 }. O
--------- ----------------
* E! T3 Z' j/ v7 [" N# |/ | _PSCModuleControl ./main.obj |
|