問題解决:#include errors detected. Please update your includePath.

看,未來 2021-08-15 11:41:07 阅读数:352

本文一共[544]字,预计阅读时长:1分钟~
解决 include errors detected. detected

當我看到解决方法的時候,不知道為什麼我的第一反應是:司馬當霍馬醫咯。

在.vscode文件夾下,找到 c_cpp_properties.json,人家報錯都跟你說了病灶,這點不用我說。

{

"configurations": [
{

"name": "Linux",
"includePath": [
"/usr/include/**", 這裏加這一行
"${workspaceFolder}/**"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "gnu17",
"cppStandard": "gnu++14",
"intelliSenseMode": "linux-gcc-x64",
"compileCommands": "${workspaceFolder}/build/release-cpp11/compile_commands.json"
}
],
"version": 4
}
版权声明:本文为[看,未來]所创,转载请带上原文链接,感谢。 https://gsmany.com/2021/08/20210815114043728W.html