|
|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
6 g; T1 N) U+ J+ e3 F, l9 d L* I PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);( M& \$ w* A+ x1 q
; e+ [6 B0 s" H, \- x, C报错如下:
: F2 ~5 ?3 O% S! Z% _, }! w& J' K! D9 o$ j'Invoking: C6000 Linker'
2 W: @. U# D# d h7 D"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" 5 ?7 Y1 Q! t! G4 N3 ^# C/ h5 y
<Linking>4 n, j$ O/ i% ^8 e5 `+ 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.
- r& a7 Y6 \' }/ p2 C- G5 Y7 S6 U, T
1 j* f* M1 T% p. p/ t- w& Q>> Compilation failure2 N; F+ d; |9 Z% ?- o& S( 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.
/ D0 |$ p7 m% W0 m
6 @( G6 i! t! X! ` undefined first referenced
6 P. C: j- g" m7 R symbol in file
d( w9 ~5 F3 M. h9 l: w1 n l --------- ----------------2 T7 }4 d6 `5 n7 Y- f
_PSCModuleControl ./main.obj |
|