就想使用vscode 进行编译个helloword ,使用env 工具,为什么报这样的错误呢?SConstruct 文件中内容: Program('test.c')#include <stdio.h> test.c 中内容: int main(void) { printf("hello world! <br>"); return 0; }把test.c中的头文件注释掉就可以了。
SConstruct 文件中内容: Program('test.c')
#include <stdio.h> test.c 中内容: int main(void) { printf("hello world! <br>"); return 0; }
查看更多
如果是是用 scons 构建自己的项目,建议用 Linux 或者单独的 scons 吧,配合 VSCode 的 Ctrl+~ 控制台使用很方便,也可以避免 env 自带编译器或者环境变量带来的问题,毕竟 env 是为了方便 RTT 开发
欢迎发表与嵌入式相关的技术分享、开发技巧、工具介绍、技术设想、职业心得、行业评论等对他人有启发,排版优雅的文章
回到 顶部
发布 问题
分享 好友
手机 浏览
投诉 建议
回到 底部