OpenCV program won't compile (Quantal)

view full story

http://askubuntu.com – I am trying to compile a simple program using OpenCV in Ubuntu Quantal. I have installed all the OpenCV packages available. My code is the following #include <stdio.h> #include <highgui.h> #include <cv.h> int main(int argc, char *argv[]) { IplImage* img=0; /* pointer to an image */ printf("Hello\n"); if(argv[1] != 0) img = cvLoadImage(argv[1], 0); // 1 for color else printf("Enter filename\n"); if(img != 0) { cvNamedWindow("Display", CV_WINDOW_AUTOSIZE); // create a window (HowTos)