keil for ARM LPC2138芯片 前几天还能编译,昨天就开始出现下面这种情况了,求高手帮忙啊,谢谢了

Rebuildtarget'Target1'assemblingStartup.s...compilinginit.c...init.c(60):warning:#111... Rebuild target 'Target 1'
assembling Startup.s...
compiling init.c...
init.c(60): warning: #111-D: statement is unreachable
init.c(62): warning: #1-D: last line of file ends without a newline
linking...
init.axf: Warning: L6373W: libattrs.map file not found in System Library directory C:\Program Files\ARM\ADSv1_2\LIB\armlib\. Library selection may be impaired.
init.axf: Error: L6242E: Cannot link object __main.o as its attributes are incompatible with the image attributes.
init.axf: Error: L6242E: Cannot link object stkheap2.o as its attributes are incompatible with the image attributes.
init.axf: Error: L6242E: Cannot link object kernel.o as its attributes are incompatible with the image attributes.
init.axf: Error: L6242E: Cannot link object libspace.o as its attributes are incompatible with the image attributes.
init.axf: Error: L6242E: Cannot link object exit.o as its attributes are incompatible with the image attributes.
init.axf: Error: L6242E: Cannot link object lib_init.o as its attributes are incompatible with the image attributes.
init.axf: Error: L6242E: Cannot link object sys_exit.o as its attributes are incompatible with the image attributes.
init.axf: Error: L6242E: Cannot link object use_semi.o as its attributes are incompatible with the image attributes.
Target not created
展开
 我来答
一剑出血
高粉答主

2013-03-17 · 醉心答题,欢迎关注
知道大有可为答主
回答量:5.7万
采纳率:78%
帮助的人:1.7亿
展开全部
查init.c文件的第60和62行。
init.c文件末尾添加一个新行。

C:\Program Files\ARM\ADSv1_2\LIB\armlib\
这个目录你是不是误删除了。项目连接时找不到相应的映射文件。
更多追问追答
追问
没有的,睡了一晚上,第二天编译就这样了,睡之前我看了下 Startup.s,不知道改动了没,会不是是有啥关系啊?
追答
最好核对一下startup.s文件。

另外我很好奇,你用MDK开发,为啥调用ADS的lib?这个lib是通用的么?我没用过ADS所以问一下。
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式