|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
( T- I$ z# }$ B) {8 p3 T5 G0 C PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
. s) f. j) G4 Q% D- w1 ?. T
. m5 u ~' n% Z报错如下:
' i$ Y8 s5 [/ w+ \& d: r7 A'Invoking: C6000 Linker'1 w( T$ Y) C- f) z
"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" 1 [* o8 x* f( k% F" X+ }
<Linking>" ~" `- v2 C0 ~: H& 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.4 Z5 R/ I/ E( b3 k9 P
2 ~0 n8 S9 Q$ B! L) R" c/ N>> Compilation failure$ z- L( O0 B! R" R, ]% d5 x! M/ C
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.
; o2 p2 k; A+ f1 K O, b8 `2 n! x- s; r6 [( x
undefined first referenced
0 Y0 d: H; L% S symbol in file " B' U; q8 C8 e; L+ k8 v
--------- ----------------
$ Q: H o; f1 j7 P. h6 v _PSCModuleControl ./main.obj |
|