vscode检测到#include错误,请更新includePath

vscode检测到#include错误,请更新includePath。
根据所用编译器输入正确查找路径命令vscode检测到#include错误,请更新includePath_第1张图片
参考参考文章
另vscode/c_cpp_properties.json文件
最开始用"compilerPath": “/usr/bin/gcc”,报错
成功配置如下

"configurations": [
        {
     
            "name": "Linux",
            "includePath": [
                "/usr/include/**",
                "${workspaceFolder}/**",
                "/usr/lib/gcc-cross/arm-linux-gnueabihf/9/include/**",
                "/usr/lib/gcc-cross/arm-linux-gnueabihf/9/../../../../arm-linux-gnueabihf/include/**",
                "/usr/include/",
                "/usr/local/include/**"
            ],
            "defines": [],
            "compilerPath": "/usr/bin/gdb",
            "cStandard": "c11",
            "cppStandard": "c++17",
            "intelliSenseMode": "gcc-x64"

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