VS2019:fatal error C1083 Cannot open header file: 'opencv.hpp'

后端 未结 1 785
感情败类
感情败类 2021-01-29 00:23

It is all fine when I was writing the code, that is, when I included the header file \"opencv2/opencv.hpp\",
and VS2019 can indeed \"see\" it,
in other words, I can use th

相关标签:
1条回答
  • 2021-01-29 00:59

    Actually there are most of the time possibility of missing "Additional include directory path" or wrongly setup.

    Where to find in Visual Studio:

    To set this compiler option in the Visual Studio development environment

    1. Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.
    2. Select the Configuration Properties > C/C++ > General property page.
    3. Modify the Additional Include Directories property.

    Visual Studio 2019 C++ Project configuration

    Example project setup is described in below link: Example setup

    0 讨论(0)
提交回复
热议问题