|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
( p& T2 s: o# t, s, N7 K% S2 V1 v PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);: S" I" H$ ~0 j9 L) D
6 e! c/ Z! B- \3 ~) ]7 _0 Y( @
报错如下:
7 `3 |0 e( u, s0 h% y8 [+ g'Invoking: C6000 Linker'$ O7 v$ D2 Z3 n. v
"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" * R6 O* r& b6 v0 M, |' r e
<Linking>
( x; I% V- i' u2 hwarning #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.6 e9 R) I* w- {* V! U
3 \, R! ?( V3 x* h9 F' \>> Compilation failure
3 D( O4 D) x3 w1 T% Q# wwarning #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.
& m; ]; L2 v" f; P. M5 p
; v5 | \+ N0 T0 b& ^. [- A x: O undefined first referenced5 w5 P; t3 G, ^
symbol in file & \7 R% A( S# V- i
--------- ----------------
3 o7 y! d9 e/ U: R$ J( h _PSCModuleControl ./main.obj |
|