码迷,mamicode.com
首页 > 其他好文 > 详细

解决Native atomics support not found问题

时间:2016-07-22 20:59:34      阅读:235      评论:0      收藏:0      [点我收藏+]

标签:

今天用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*/
搞定

解决Native atomics support not found问题

标签:

原文地址:http://www.cnblogs.com/shenlinken/p/5696896.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!