Compile error : undefined reference to‘__atomic_fetch_add_4’

前端 未结 3 406
广开言路
广开言路 2021-01-19 14:52
#include 
using namespace cv;

int main()
{
  Mat img=imread(\"cornea.jpg\");
  imshow(\"src\",img);
  waitKey(0);
  return 0;
}

3条回答
  •  北海茫月
    2021-01-19 15:16

    You may need to link with atomic library. Try with

    -latomic

    in your GCC compilation command line.

    NOTE: i had to do it compiling with CLang 8 on a ARMv7 device (Android).

提交回复
热议问题