嵌入式开发者社区

标题: StarterWare 的库 识别不了 如何办 新手 求助 [打印本页]

作者: ajzhu    时间: 2019-5-31 17:45
标题: StarterWare 的库 识别不了 如何办 新手 求助
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
. C  ^+ Y$ e; L; u. v( c% J  PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);4 M) X4 [, Q. `+ g" \
& R6 o2 k* @( }! e3 }5 |% g
报错如下:
  k' c: Y5 J5 p( r8 c'Invoking: C6000 Linker'- f9 z% h7 ]# Q# }
"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 N1 R! z4 I2 @- e( b<Linking>
+ e3 e0 D  m0 y* x% ]! i& c6 uwarning #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.
3 S8 p1 b+ W8 v
9 @% v3 y; q7 y2 n; |* I>> Compilation failure
, H6 F9 ~3 R4 O/ ^7 Kwarning #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.
- B( ]4 ?( y* c0 p% F  |. V/ Q" \- [" E0 }3 O5 ^
undefined         first referenced. ?' x7 r% A2 z3 S7 R
  symbol               in file     
: M% @% I% ~8 S* M ---------         ----------------
5 c) Z& ^4 G! _% u* K _PSCModuleControl ./main.obj      
作者: 广州创龙莫工    时间: 2019-6-4 08:49
调用的库是elf格式,工程编译输出格式也要选择elf格式,您是不是是不是选择了coff格式?1 a3 c* s' S/ ~8 P
[attach]5155[/attach]




欢迎光临 嵌入式开发者社区 (https://www.51ele.net/) Powered by Discuz! X3.4