你好,游客 登录 注册 搜索
背景:
阅读新闻

Native atomics support not found问题解决

[日期:2016-08-12] 来源:Linux社区  作者:shenlinken [字体:大 中 小]

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!

#endif*/

搞定

本文永久更新链接地址:http://www.linuxidc.com/Linux/2016-08/134198.htm

linux
相关资讯       Native atomics support not found 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款