解決Native atomics support not found問題,nativeatomics
解決Native atomics support not found問題,nativeatomics
今天用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!
#endif*/
搞定
http://xxxxxx/Linuxjc/1144284.html TechArticle