c++ - Error LNK2019 despite proper installation and proper code syntax with opencv -
c++ - Error LNK2019 despite proper installation and proper code syntax with opencv -
i new visual studio , c++ in general have basic knowledge programming. issue having same problem linker every single time run code integrates opencv functions. have next code:
and errors related lnk2019 , object of file run. see image below
#include <opencv2\highgui\highgui.hpp> #include <opencv2\core\core.hpp> #include <iostream> using namespace std; int main( int argc, char** argv ) { seek { if(argc !=2) homecoming -1; cv::mat image = cv::imread(argv[1], cv_load_image_color); if(! image.data){ cout << "could not open or find image" << endl; homecoming -1;} cv::namedwindow("display window", cv::window_autosize); cv::imshow( " display window", image); cv::waitkey(3000); homecoming 0; } catch(cv::exception& e) { const char* err_msg = e.what(); std::cout << "exception caught: " << err_msg << std::endl; } }
thanks help
c++ opencv linker-error
Comments
Post a Comment