Image is not display using VS 2010 with OpenCV
Below is my program
#include<opencv\cv.h>
#include<opencv\highgui.h>
using namespace cv;
int main()
{
IplImage* img = cvLoadImage("C:\\Users\\garry\\Admin\\Desktop\\ab.jpg");
cvNamedWindow("a",CV_WINDOW_AUTOSIZE);
cvShowImage("a",img);
cvWaitKey(0);
cvReleaseImage(&img);
cvDestroyWindow("a");
return 0;
You seem to have a link error when linking with opencv_calib3d library. You can try removing that library from your linker inputs and try again since you don't need it for your program. However I can't tell why that file is corrupt and you may have to reinstall opencv to make sure that you can link with that library as you may need it in the future.