I'm currently testing OpenCV with a program I've found on the Internet. Here is the code:
#include <cv.h>
#include <highgui.h>
#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui_c.h>
using namespace cv;
int main( int argc, char** argv )
{
Mat image;
image = imread( argv[1], 1 );
if( argc != 2 || !image.data )
{
printf( "No image data \n" );
return -1;
}
namedWindow( "Display Image", CV_WINDOW_AUTOSIZE );
imshow( "Display Image", image );
waitKey(0);
return 0;
}
The problem appears when I try to build the project on Eclipse Platform v3.7.2, I get this error (please refer to the attached photos below), but I don't know how I can fix it, can anybody help?