如何修复 SDCC "at 1: warning 119: don't know what to do with file 'main.o'. file extension unsupported"
如果你使用 SDCC 为你的微控制器编译 C 代码并遇到类似这样的错误消息:
sdcc-warning.txt
at 1: warning 119: don't know what to do with file 'main.o'. file extension unsupported你必须配置你的构建系统对目标文件使用 .rel 后缀而不是标准的 .o。SDCC 期望构建的目标文件具有 .rel 扩展名!请参见如何将 CMake 目标文件后缀从默认的 “.o” 更改了解在 CMake 中如何操作的详情。
Check out similar posts by category:
Build Systems, Embedded
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow