StarterWare 的库 识别不了 如何办 新手 求助 - OMAP-L138 - 嵌入式开发者社区 - 51ele.net
设为首页收藏本站

嵌入式开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 4380|回复: 1
打印 上一主题 下一主题

[已解决] StarterWare 的库 识别不了 如何办 新手 求助

[复制链接]

6

主题

6

帖子

42

积分

新手上路

Rank: 1

积分
42
跳转到指定楼层
楼主
发表于 2019-5-31 17:45:55 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决$ o( {% T& h) ^  x0 m3 K( G
  PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);. ]. _  a  M; a' f$ d8 K
! V: O1 k9 q$ _
报错如下:/ D7 l0 c( z# S6 j7 i& J
'Invoking: C6000 Linker'; x2 @- D- Z% K; C9 `
"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" " i7 p! E6 V6 r* ~6 [
<Linking>/ F+ x9 W5 U2 Y$ Z
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.+ W6 V: g/ s$ a# K  _

3 T+ N- t( R+ S9 f; s6 S$ a7 a>> Compilation failure
! x& ]0 E0 k/ N& k  f9 A* m3 qwarning #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.
! S/ x! K& Z& g! L  J" g2 u
8 G3 G( A; e4 O/ W) E7 J( A1 K undefined         first referenced* y+ k8 X! j# N, n$ J
  symbol               in file     ! ~( ?; w1 f0 y8 H
---------         ----------------% m: \8 E* B0 D4 D  {
_PSCModuleControl ./main.obj      
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖
回复

使用道具 举报

3

主题

524

帖子

2083

积分

创龙

Rank: 8Rank: 8

积分
2083
沙发
发表于 2019-6-4 08:49:02 | 只看该作者
调用的库是elf格式,工程编译输出格式也要选择elf格式,您是不是是不是选择了coff格式?$ b+ k% t$ J3 d

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|嵌入式开发者社区 ( 粤ICP备15055271号

GMT+8, 2024-4-20 01:22 , Processed in 0.036050 second(s), 24 queries .

Powered by Discuz! X3.2

© 2001-2015 Comsenz Inc.

快速回复 返回顶部 返回列表