opencv.exe application error
Hello , I am very new to opencv i trying to create a project in VS2010 using opencv library.I installed and configure the VS2010 with opencv according to the below website http://opencv-srf.blogspot.in/2013/05... I took one example from net and tried to compile
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "iostream"
using namespace cv;
using namespace std;
int main( int argc, char** argv )
{
if( argc != 2)
{
std::cout <<" Usage: display_image ImageToLoadAndDisplay" << endl;
return -1;
}
Mat image;
image = imread(argv[1], IMREAD_COLOR); // Read the file
if(! image.data ) // Check for invalid input
{
cout << "Could not open or find the image" << std::endl ;
return -1;
}
namedWindow( "Display window", WINDOW_AUTOSIZE ); // Create a window for display.
imshow( "Display window", image ); // Show our image inside it.
waitKey(0); // Wait for a keystroke in the window
return 0;
}
The above program is compiled perfectly but when running i am getting an error "The application was unable to start correctly (0xc000007b).Click OK to close the application"(OPENCV.exe-Application Error) I am using windows 7 64bit ,VS2010 and using \opencv\build\x86\vc11\lib for the current project. Please can anyone let me know why i am facing the problem.