VS代码。 C ++。找不到std标头

时间:2018-02-03 13:08:42

标签: c++ visual-studio-code vscode-settings

我刚安装了VS Code并使用该设置配置了C ++扩展。

{
"configurations": [
    {
        "name": "null",
        "includePath": [
            "/usr/include/c++/7.2.1",
            "/usr/include/c++/7.2.1/x86_64-pc-linux-gnu",
            "/usr/include/c++/7.2.1/backward",
            "/usr/include",
            "/usr/local/include",
            "/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.1/include-fixed",
            "/usr/include/linux",
            "${workspaceRoot}"
        ],
        "defines": [],
        "browse": {
            "path": [
                "/usr/include/c++/7.2.1",
                "/usr/include/c++/7.2.1/x86_64-pc-linux-gnu",
                "/usr/include/c++/7.2.1/backward",
                "/usr/include",
                "/usr/local/include",
                "/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.1/include-fixed",
                "/usr/include/linux",
                "${workspaceRoot}"
            ],
            "limitSymbolsToIncludedHeaders": true,
            "databaseFilename": ""
        },
        "intelliSenseMode": "clang-x64",
        "compileCommands": "${workspaceRoot}/compile_commands.json"
    }
],
"version": 3 
}

然而,VS Code继续写错误之类的 this

我已阅读thisthis

无论如何,没有任何帮助。

希望你能提供帮助。

0 个答案:

没有答案