嵌入式开发者社区
标题:
StarterWare 的库 识别不了 如何办 新手 求助
[打印本页]
作者:
ajzhu
时间:
2019-5-31 17:45
标题:
StarterWare 的库 识别不了 如何办 新手 求助
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
: J/ B/ f8 }6 @- q1 p- @
PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
P6 _4 X2 K) V
3 t8 _8 L5 ?) [3 ]0 S' b
报错如下:
% I- ]+ _! S, D
'Invoking: C6000 Linker'
, Q' A" O# e3 H( i, e6 v3 h1 ]
"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"
' ?7 [4 P2 U7 Q! O) D8 o6 y
<Linking>
5 n* [# ?7 M j1 h! n$ w8 X( J. j# G
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.
7 o6 Q9 Y+ r$ G! P! p/ U$ U
# M* ]# x3 o( w; L0 e
>> Compilation failure
8 N$ M' m7 S% d3 p. i( h r' S1 [8 r
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.
5 Y9 U( P% u; V% i
9 d+ P( k. Q) F. L9 j9 b% ^
undefined first referenced
* e- k5 H8 x" [
symbol in file
+ V' e9 @& t% S& A
--------- ----------------
6 u8 o" Y! @* I6 e. ?$ k
_PSCModuleControl ./main.obj
作者:
广州创龙莫工
时间:
2019-6-4 08:49
调用的库是elf格式,工程编译输出格式也要选择elf格式,您是不是是不是选择了coff格式?
3 m* H9 L5 P# U. H u
[attach]5155[/attach]
欢迎光临 嵌入式开发者社区 (https://www.51ele.net/)
Powered by Discuz! X3.4