Keil MDK5解决error: L6002U: Could not open file …\obj\main.o: No such file or directory

笔记自用

参考自本文,感谢原作者!

解决问题:
Keil MDK5编译时出现错误:error: L6002U: Could not open file …\obj\main.o: No such file or directory
错误原因:
电脑系统用户名中存在中文字符
解决办法:
右键我的电脑\属性\高级系统设置\环境变量\用户环境变量,找到变量 TEMP 和 TMP,将变量值中的“%USERPROFILE%”使用“C:\user\default”代替,重启电脑,解决!
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_44097539/article/details/124798550