vscode运行,提示undefined reference to main
发布日期:2021-05-08 05:11:43 浏览次数:15 分类:精选文章

本文共 137 字,大约阅读时间需要 1 分钟。

错误提示

vscode中使用c++runner插件运行 g++ demo.c

undefined reference to main

原因

demo.c中没有main()函数

demo.c没有保存
使用vscode作为IDE,c++runner插件没有勾选运行前保存全部文件

上一篇:关于stl vector的emplace_back函数参数
下一篇:PCLConfig.cmake的关键代码解读(部分)

发表评论

最新留言

关注你微信了!
[***.104.42.241]2025年04月11日 18时10分42秒