Ask Your Question

Revision history [back]

In the linker just link the following files as of now

opencv_imgcodec
opencv_imgproc
opencv_highgui 
opencv_core

and gradually link the other files. The following files object i couldn't link

opencv_legacy
opencv_contrib

I guess that was the error. And make also remove

#include<cv.h>
#include<highgui.h>

to

#include<opencv2/opencv.hpp>

.