Ask Your Question

Revision history [back]

Unresolved externals cv::flip cv::imshow

Can not set OpenCV in VS 2017. What do I do wrong?

CODE:

 #include "opencv2/highgui/highgui.hpp"

    using namespace cv;

    void main() {
    Mat src;
    VideoCapture cap;
    cap.open(0);

    while (true)
    {
        cap >> src;
        flip(src, src, 2);
        imshow("dd", src);

        waitKey(0);
    }}

LIBS I included:

  • opencv_highgui401.lib
  • opencv_core401.lib
  • opencv_videoio401.lib

LIB DEPENDEICES:

  • C:\OpenCV\OpneCV_bin\install\x64\vc15\bin
  • C:\OpenCV\OpneCV_bin\install\x64\vc15\lib

ADDITIONAL INCLUDE DIRS

  • C:\OpenCV\OpneCV_bin\install\include
  • C:\OpenCV\opencv\build\include

AND still I have errors:

unresolved external symbol "void __cdecl cv::flip(class cv::debug_build_guard::_InputArray const &,class cv::debug_build_guard::_OutputArray const &,int)"

unresolved external symbol "void __cdecl cv::imshow(class std::basic_string,class std::allocator const &,class cv::debug_build_guard::_InputArray const &)"

What am I missing?