visual studio代码编辑器无法识别c ++中的opencv路径包含头文件

时间:2017-07-18 10:34:30

标签: opencv visual-studio-code

我在Windows 7上使用Visual Studio代码编辑器来编译c ++项目但是我在编辑器中看到错误,其中包含在browser.path中找不到的文件。

以下是包含:

 #include <opencv2/opencv.hpp>

以下是c_cpp_properties.json文件。

{
"configurations": [
    {
        "name": "Mac",
        "includePath": [
            "${workspaceRoot}",
            "/usr/include",
            "/usr/local/include"
        ],
        "defines": [],
        "intelliSenseMode": "clang-x64",
        "browse": {
            "path": [
                "/usr/include",
                "/usr/local/include"
            ],
            "limitSymbolsToIncludedHeaders": true,
            "databaseFilename": ""
        }
    },
    {
        "name": "Linux",
        "includePath": [
            "${workspaceRoot}",
            "/usr/include",
            "/usr/local/include"
        ],
        "defines": [],
        "intelliSenseMode": "clang-x64",
        "browse": {
            "path": [
                "/usr/include",
                "/usr/local/include"
            ],
            "limitSymbolsToIncludedHeaders": true,
            "databaseFilename": ""
        }
    },
    {
        "name": "Win32",
        "includePath": [
            "${workspaceRoot}",
            "A:/Program Files/VC/include/*",
            "C:/Program Files (x86)/Windows Kits/8.1/Include/um",
            "C:/Program Files (x86)/Windows Kits/8.1/Include/shared",
            "C:/Program Files (x86)/Windows Kits/8.1/Include/winrt",
            "A:/OPENCV-32/opencv/build/include"
        ],
        "defines": [
            "_DEBUG",
            "UNICODE"
        ],
        "intelliSenseMode": "msvc-x64",
        "browse": {
            "path": [
                "A:/Program Files/VC/include/*",
                "C:/Program Files (x86)/Windows Kits/8.1/Include/um",
                "C:/Program Files (x86)/Windows Kits/8.1/Include/shared",
                "C:/Program Files (x86)/Windows Kits/8.1/Include/winrt"
            ],
            "limitSymbolsToIncludedHeaders": true,
            "databaseFilename": ""
         }
      }
   ]
 }

0 个答案:

没有答案