|
|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决3 s6 r, R3 W5 g2 {+ W% e
PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
0 x1 R; A) d( c: \% F1 U w, a6 ^( b9 O8 u' w
报错如下:
2 C% u7 Y) }2 R* \6 R- @, e) E'Invoking: C6000 Linker'
% v4 a! G8 L! m: ~"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"
& }& |2 b+ s4 ^( I<Linking>
: J+ n3 \1 j" j. owarning #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+ `' m* j0 v4 v
z# @, f, l: O! G: O: d2 B>> Compilation failure
5 x& T0 h& Z: p8 mwarning #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.* A8 E. ?4 Q6 q
_! |4 F4 p* I4 h" N% t6 R
undefined first referenced# _1 N! b" ?" n& p$ k- [
symbol in file , v6 C( L" h- \- A% ]
--------- ----------------6 P2 Q% y2 v! b! F" L
_PSCModuleControl ./main.obj |
|