i am using raspbian,opencv-2.4.8 and geany this is my simple/first code
#include <iostream>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/core/core.hpp>
using namespace std;
using namespace cv;
int main ()
{
Mat image=imread("/home/pi/Desktop/pic3.png");
if (! image.data)
{
cout<<"error"<<endl;
}
else
{
namedWindow("display",WINDOW_AUTOSIZE)
imshow("display",image);
waitKey(0);
return 0;
}
}
these are compile and build commands in geany->project->properties->build
g++ $(pkg-config --cflags opencv-2.4.8) -c "f'
g++ $(pkg-config --clfags --libs opencv-2.4.8) -o "e" "f'
and it compiles and build perfectly but when i execute it this is my output
Illegal instruction
(program exited with code :132)
i have searched this exit code on internet but couldn't find a single thread or issue about it