#include
using namespace cv;
int main()
{
Mat img=imread(\"cornea.jpg\");
imshow(\"src\",img);
waitKey(0);
return 0;
}
On i386, you need to add -latomic
as GCC cannot use assembler instructions but has to fallback on the libatomic library implementation.
Starting with i586, atomic instructions are available and linking against libatomic is no longer required. That means, the alternative of -latomic
is to use -march=i586
.