I have built Opencv using Cmake and then I am trying to run this code:
// OpenCV_Helloworld.cpp : Defines the entry point for the console application.
// Created for build/install tutorial, Microsoft Visual C++ 2010 Express and OpenCV 2.1.0
return 0;
}
But the error I am getting is :
1>------ Build started: Project: OpenCV_HelloWorld1, Configuration: Debug x64 ------
1>Open_HelloWorld1.obj : error LNK2019: unresolved external symbol cvReleaseImage referenced in function wmain
1>Open_HelloWorld1.obj : error LNK2019: unresolved external symbol cvDestroyWindow referenced in function wmain
1>Open_HelloWorld1.obj : error LNK2019: unresolved external symbol cvWaitKey referenced in function wmain
1>Open_HelloWorld1.obj : error LNK2019: unresolved external symbol cvShowImage referenced in function wmain
1>Open_HelloWorld1.obj : error LNK2019: unresolved external symbol cvNamedWindow referenced in function wmain
1>Open_HelloWorld1.obj : error LNK2019: unresolved external symbol cvLoadImage referenced in function wmain
1>C:\Users\Pratik\documents\visual studio 2010\Projects\OpenCV_HelloWorld1\x64\Debug\OpenCV_HelloWorld1.exe : fatal error LNK1120: 6 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I have tried various combination i the net , please help me out
Looks like you're not linking against the libraries containing the functions cvReleaseImage, cvDestroyWindow, cvWaitKey, cvShowImage, cvNamedWindow and cvLoadImage.