|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
j4 H9 C! u6 X) E$ B PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);0 f& F# B& R- e5 u% J
! ]2 l& h* j: M报错如下:) X" D2 k1 D' }0 h* e2 f D
'Invoking: C6000 Linker'
0 |; d& K1 |' h! y"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" ) n3 A, O! a( O9 U- H% k" \/ l
<Linking>9 ]/ G% a7 j: g J6 s
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.
0 G+ _+ {. q7 J/ m( l) @# p+ _" b% I9 E; u4 M, v
>> Compilation failure+ x+ l P, Z% Q1 A" ^5 u
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.
$ Y7 M* ~! b& E2 d# w# J/ G% x4 \! ]
undefined first referenced, h Z. }; f8 w
symbol in file
. B* P2 E8 p, d' n1 s, N --------- ----------------
7 y8 c( S' D/ K" g+ x4 S _PSCModuleControl ./main.obj |
|