|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
# ^% _5 G* t% `- u PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);) i% a4 z$ b7 o& D
' l, A* T! E7 o% w# d& A A4 d
报错如下:
* T' O; W1 V; x0 o" w'Invoking: C6000 Linker'/ f4 K: Q. a q" v. J
"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"
e4 J7 [8 u+ m6 k<Linking>6 ~* u6 {; q$ U4 ?( T, X
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.
( W: j7 N7 W) z O- r: c, [) E& D3 E3 |: z2 V
>> Compilation failure/ C' A& s/ Z1 d0 x: F
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.5 P- a: a, _ x. A
0 z# b# |, Y0 z
undefined first referenced
. u! o( K. \/ E; k symbol in file
. a7 |* m% p# T3 Y2 I) c --------- ----------------* S+ X% E" |' H0 D1 J. J3 X
_PSCModuleControl ./main.obj |
|