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 展开
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 展开
展开全部
查init.c文件的第60和62行。
init.c文件末尾添加一个新行。
C:\Program Files\ARM\ADSv1_2\LIB\armlib\
这个目录你是不是误删除了。项目连接时找不到相应的映射文件。
init.c文件末尾添加一个新行。
C:\Program Files\ARM\ADSv1_2\LIB\armlib\
这个目录你是不是误删除了。项目连接时找不到相应的映射文件。
更多追问追答
追问
没有的,睡了一晚上,第二天编译就这样了,睡之前我看了下 Startup.s,不知道改动了没,会不是是有啥关系啊?
追答
最好核对一下startup.s文件。
另外我很好奇,你用MDK开发,为啥调用ADS的lib?这个lib是通用的么?我没用过ADS所以问一下。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询