Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I hope you don't mind that I change your question title and edit the question too , because it was looking weird . Now lets move to the answer :

First : You VS2010 contain the linking error you can configure it or can check it out from here as it guide you on each and every step.

Second : Your unfortunately using C interface in your program , try to use c++ interface like instead of using

IplImage* img = cvLoadImage("C:\\Users\\garry\\Admin\\Desktop\\ab.jpg");

Use Mat img = imread("C:\Users\garry\Admin\Desktop\ab.jpg") and same for other like imshow ("a" , img); instead of cvShowImage("a",img);