嵌入式开发者社区

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

作者: ajzhu    时间: 2019-5-31 17:45
标题: StarterWare 的库 识别不了 如何办 新手 求助
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决" Z4 ^4 ?, e( O) Y, d( \( q; }
  PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
3 i! T& a" d# ]* w! j4 {  }9 A' E4 i1 \. ?1 U$ m( `6 L
报错如下:0 X6 \* M1 b& Q/ F" D/ I4 O6 K% Q5 T
'Invoking: C6000 Linker'
2 ]9 C1 V$ E. E9 E$ @  i! e"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" " G% H( b% e# L( c: W/ B* L) D
<Linking>
) o' M4 b9 ^3 ]; H5 ^$ h6 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.
% L' \) C2 r2 K
  X0 ]( Q: x* y* F/ [* I8 H>> Compilation failure0 ]) k" m) [; A" 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.* l& R9 w2 s  s' v- {: t
6 q/ F! U; f) |" z2 n5 l* F6 Q& _
undefined         first referenced
: o7 z" t+ a! {- P  symbol               in file     1 L7 F/ J" d, L# S( T' X; o0 m6 G
---------         ----------------, ], ^, x  D9 B3 o. i0 C
_PSCModuleControl ./main.obj      
作者: 广州创龙莫工    时间: 2019-6-4 08:49
调用的库是elf格式,工程编译输出格式也要选择elf格式,您是不是是不是选择了coff格式?& d# ]& F# {' _& b3 m1 q5 Z& k8 [
[attach]5155[/attach]




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