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!

你可能感兴趣的:(vscode报错:检测到 #include 错误。请更新 includePath。)