vscode报错:检测到 #include 错误。请更新 includePath。

image.png

如图
解决方法:
参考:https://blog.csdn.net/qq_37960007/article/details/104455239?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.edu_weight&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.edu_weight

我是安装了vs,所以默认compilerPath的vs的cl.exe,
"compilerPath": "d:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe",
修改为
"compilerPath": "C:\\mingw64\\bin\\g++.exe",

当然
这个也对应修改一下
"intelliSenseMode": "gcc-x64"

finished!

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容