嵌入式开发者社区

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

作者: ajzhu    时间: 2019-5-31 17:45
标题: StarterWare 的库 识别不了 如何办 新手 求助
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决# W0 x2 H- z2 v) W( x% L# M
  PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
& q4 h7 W$ z- A1 i( [
) K/ s, O9 Z- D6 V+ S. ~7 V7 }1 a* z报错如下:9 H. ?) Z* g# a  A0 o! C$ c
'Invoking: C6000 Linker', o/ \1 z0 X* O# |
"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" % V( t" S' c1 x; w
<Linking>3 _7 a, `; t4 X) G4 d! E- T; {" P
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.
- I: L* R4 }+ d$ H) p! o7 x) a" w  d& Y8 A+ |2 F! I3 R
>> Compilation failure* p5 Q3 D1 a+ j3 V6 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.# M6 K: o% C, W' [1 ^1 q/ L3 ~
# _. N) m- s9 k8 r
undefined         first referenced/ R& V* n. k  ]( C
  symbol               in file     
2 W0 r& D( _* j9 J ---------         ----------------, Q( W- T, b8 D# q4 c2 \/ }4 q
_PSCModuleControl ./main.obj      
作者: 广州创龙莫工    时间: 2019-6-4 08:49
调用的库是elf格式,工程编译输出格式也要选择elf格式,您是不是是不是选择了coff格式?) o- `9 {+ s* \( U
[attach]5155[/attach]




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