..\Output\xx.axf: error: L6002U: Could not open file ..\output\xx.o: No such file or directory 解决方法

…\Output\xx.axf: error: L6002U: Could not open file …\output\main.o: No such file or directory 解决方法

平台:Keil v5.34 MCU:GD32F103CBT6


问题描述

编译过程出现报错:…\Output\xx.axf: error: L6002U: Could not open file …\output\main.o: No such file or directory


原因分析:

1.说的最多的就是你的工程存在中文路径,这也是百度出来最多的答案,解决方式就是修改路径然后重新编译即可
2.还有一种就是…\output\main.o这里,xx.o这个文件里可能有包含其他错误信息,比如调用的其他文件定义的宏,与其名称不一致


解决方案:

参考上述原因分析