|
|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决6 N# H& M l) c1 Y: O5 m
PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);" ^0 v6 S4 A* n9 {5 s
5 x: ~0 H) g4 R& E8 p x# }3 L
报错如下:
# q: v7 k. C) _1 X+ r+ \9 L) V'Invoking: C6000 Linker'7 @- n$ E7 f+ j1 K5 s
"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" ( {$ @' ^6 |0 M; Y
<Linking>- a f5 v, F* o. Y+ B
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." M- ~% U f+ k( w
# M8 Z0 {- `2 H) p. p>> Compilation failure
- e) S' v. {. S! l# Swarning #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.
1 n& P" ^9 N' J! R# Q7 h+ s3 e/ h; i/ s
undefined first referenced
+ U$ f* U/ R$ F) g: s, F* \ symbol in file
. m' S( L) K. p) @5 `: k --------- ----------------
7 l. D- |9 h2 s6 n _PSCModuleControl ./main.obj |
|