keil arm md5 链接时候出现..OBJTEST.axf: Error: L6242E: Cannot link object time_int.o

2019-07-20 03:35发布

今天在keil5下编译程序,liking时候发现错误如下:
linking...
..OBJTEST.axf: Error: L6242E: Cannot link object sotpsdk.o as its attributes are incompatible with the image attributes.
   ... packed-enum clashes with enum_is_int.
..OBJTEST.axf: Error: L6242E: Cannot link object localmem.o as its attributes are incompatible with the image attributes.
   ... packed-enum clashes with enum_is_int.
..OBJTEST.axf: Error: L6242E: Cannot link object time_int.o as its attributes are incompatible with the image attributes.
   ... packed-enum clashes with enum_is_int.
..OBJTEST.axf: Error: L6242E: Cannot link object otpplus.o as its attributes are incompatible with the image attributes.
   ... packed-enum clashes with enum_is_int.
..OBJTEST.axf: Error: L6242E: Cannot link object tcpoto.o as its attributes are incompatible with the image attributes.
   ... packed-enum clashes with enum_is_int.
..OBJTEST.axf: Error: L6242E: Cannot link object sotptcp.o as its attributes are incompatible with the image attributes.
   ... packed-enum clashes with enum_is_int.
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
Finished: 8 information, 0 warning and 6 error messages.
"..OBJTEST.axf" - 6 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:34

在网上查找后说是引用了静态库,我的工程里面确实有静态库,但是为什么会出现这个问题呢
谁遇到过这个问题

友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
2条回答
正点原子
1楼-- · 2019-07-20 09:14
 精彩回答 2  元偷偷看……
zxc022692
2楼-- · 2019-07-20 12:25
可能是误删文件了,把MDK重新装一下就好了

一周热门 更多>