I installed OpenCV 2.4.0 in codeblocks IDE with help of this link in my windows 32bit pc. I follow the all the steps properly I think.
when I run the following code it works well:
#include "opencv2/highgui/highgui.hpp"
#include <iostream>
using namespace cv;
using namespace std;
int main()
{
cout<<"Hello"<<endl;
return 0;
}
But when i run this code it shows that The application was unable to start correctly (0xc00000be)
#include "opencv2/highgui/highgui.hpp"
#include <iostream>
using namespace cv;
using namespace std;
int main()
{
cv::Mat im = cv::imread("m.jpg");
if (im.empty())
{
cout << "Cannot open image!" << endl;
return -1;
}
cout<<"image is showing.......\n";
cv::imshow("image", im);
// waitKey(0);
cout<<"Hello"<<endl;
return 0;
}
Is there any other configuration for working well with opencv in codeblocks.
I googled and find that it is not a problem of configuring rather problem of windows. I stuck many hours of googling and find nothing helpfull.