Native atomics support not found问题解决

Native atomics support not found问题解决

今天用arm-none-linux-gnueabi交叉编译libmysqclient.so,出现Native atomics support not found问题

进入mysql-connector-c-6.16-src的include/my_atomic.h,里面有

#if defined(_MSC_VER)

#  include "atomic/generic-msvc.h"

#elif defined(HAVE_SOLARIS_ATOMIC)

#  include "atomic/solaris.h"

#elif defined(HAVE_GCC_ATOMIC_BUILTINS)

#  include "atomic/gcc_builtins.h"

#else

#  error Native atomics support not found!

#endif

简单的解决方式就说把这注释掉,在上面加上#include "atomic/gcc_builtins.h"

#include "atomic/gcc_builtins.h"

/*#if defined(_MSC_VER)

#  include "atomic/generic-msvc.h"

#elif defined(HAVE_SOLARIS_ATOMIC)

#  include "atomic/solaris.h"

#elif defined(HAVE_GCC_ATOMIC_BUILTINS)

#  include "atomic/gcc_builtins.h"

#else

#  error Native atomics support not found!

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/4621bcda3ac14211f38111a82c5a0c0b.html