Necessário: código-fonte em funcionamento de c_cpp_properties.json no código VS para o Ubuntu 16.04

0

Alguém pode postar seu código-fonte em funcionamento com todo o includePath funcionando corretamente?

Por engano, copio e colei o que é adequado para o Windows XD.

É algo como:

{
    "configurations": [
        {
            "name": "Mac",
            "includePath": [
                "${workspaceRoot}"
            ],
            "defines": [],
            "intelliSenseMode": "clang-x64",
            "browse": {
                "path": [
                    "${workspaceRoot}"
                ],
                "limitSymbolsToIncludedHeaders": true,
                "databaseFilename": ""
            },
            "macFrameworkPath": [
                "/System/Library/Frameworks",
                "/Library/Frameworks"
            ]
        },
        {
            "name": "Linux",
            "includePath": [
                "/usr/include",
                "/usr/local/include",
                "${workspaceRoot}"
            ],
            "defines": [],
            "intelliSenseMode": "clang-x64",
            "browse": {
                "path": [
                    "/usr/include",
                    "/usr/local/include",
                    "${workspaceRoot}"
                ],
                "limitSymbolsToIncludedHeaders": true,
                "databaseFilename": ""
            }
        },
        {
                    "name": "Win32",
                    "intelliSenseMode": "clang-x64",
                    "includePath": [
                        "${workspaceRoot}",
                        "C:/MinGW/lib/gcc/mingw32/5.3.0/include/c++",
                        "C:/MinGW/lib/gcc/mingw32/5.3.0/include/c++/mingw32",
                        "C:/MinGW/lib/gcc/mingw32/5.3.0/include/c++/backward",
                        "C:/MinGW/lib/gcc/mingw32/5.3.0/include",
                        "C:/MinGW/include",
                        "C:/MinGW/lib/gcc/mingw32/5.3.0/include-fixed"
                    ],
                    "defines": [
                        "_DEBUG",
                        "UNICODE",
                        "__GNUC__=5",
                        "__cdecl=__attribute__((__cdecl__))"
                    ],
                    "browse": {
                        "path": [
                            "C:/MinGW/lib/gcc/mingw32/5.3.0/include",
                            "C:/MinGW/lib/gcc/mingw32/5.3.0/include-fixed",
                            "C:/MinGW/include/*"
                        ],
                        "limitSymbolsToIncludedHeaders": true,
                        "databaseFilename": ""
                    }
        }
    ],
    "version": 3
}
    
por Nishanth R 08.03.2018 / 20:03

0 respostas