c++ - undefined reference to `__atomic_fetch_add_4 error while using opencv -


i'm new opencv library , every time try compile code

#include "opencv2/core.hpp" #include "opencv2/highgui.hpp" #include "opencv2/imgcodecs.hpp" using namespace cv; using namespace std; int main() { mat img; img = imread("lena.jpg"); imshow("original image", img); waitkey(); } 

i error undefined reference `__atomic_fetch_add_4

this code copied tutorial , it's working writer problem me

i looked solution problem , did not found working solution, not no cause of problem

i'm using code::blocks ide

thanks,

go setting>compiler settings , tick intel i486 option. worked me


Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -