keil5 MDK 链接报错 Error: L6410W 解决

keil5 MDK 报错

Build target 'Project'
linking...
.\Output\Project.axf: Warning: L6310W: Unable to find ARM libraries.
.\Output\Project.axf: Error: L6411E: No compatible library exists with a definition of startup symbol __main.
Not enough information to list image symbols.
Not enough information to list the image map.
Finished: 2 information, 1 warning and 1 error messages.
".\Output\Project.axf" - 1 Error(s), 1 Warning(s).
Target not created

增加以下内容
--libpath "C:\Keil\ARM\ARMCC\lib"

问题解决

有很多帖子说加环境变量ARMCC5LIB C:\Keil\ARM\ARMCC\lib,试过不管用,上面的方法可行

猜你喜欢

转载自www.cnblogs.com/OceanF/p/10207189.html