问题解决:#include errors detected. Please update your includePath.

Posted 看,未来

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了问题解决:#include errors detected. Please update your includePath.相关的知识,希望对你有一定的参考价值。

当我看到解决方法的时候,不知道为什么我的第一反应是:司马当霍马医咯。

在.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
}

以上是关于问题解决:#include errors detected. Please update your includePath.的主要内容,如果未能解决你的问题,请参考以下文章

求解决方案?.c(4) : fatal error C1083: Cannot open include file: 'sys/socket.h': No such

解决error C2059: 语法错误:“::”问题

解决date类型数据后面带0.000+00的问题

编译php 出现 make: *** [ext/mysqli/mysqli.lo] Error 1 错误的解决办法

未解决:fatal error: wasm.h: 没有那个文件或目录 #include <wasm.h>

_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h':问题的解决 mysql安装pyth