前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >亚马逊AVS C++ SDK 编译错误解决

亚马逊AVS C++ SDK 编译错误解决

作者头像
程序手艺人
发布2019-02-21 16:31:18
1.2K0
发布2019-02-21 16:31:18
举报
文章被收录于专栏:程序手艺人程序手艺人
undefined reference to__atomic_store_8

buildroot 中集成AVS 编译出现:

编译器: Mipsel 错误警告:

代码语言:javascript
复制
Please see compilation error log below:
[ 21%] Linking CXX executable AttachmentManagerV2Test
Attachment/Common/libAttachmentCommonTestLib.a(Common.cpp.o): In function alexaClientSDK::avsCommon::utils::sds::SharedDataStream<alexaClientSDK::avsCommon::utils::sds::InProcessSDSTraits>::BufferLayout::init(unsigned int, unsigned int)': Common.cpp:
(.text._ZN14alexaClientSDK9avsCommon5utils3sds16SharedDataStreamINS2_18InProcessSDSTraitsEE12BufferLayout4initEjj[_ZN14alexaClientSDK9avsCommon5utils3sds16SharedDataStreamINS2_18InProcessSDSTraitsEE12BufferLayout4initEjj]+0x320): 
undefined reference to__atomic_store_8'Common.cpp:

幸运的是 AVS C++ SDK Github 有人遇到该问题,也给出了解决方案

这里写图片描述
这里写图片描述
代码语言:javascript
复制
avs-sdk/SampleApp/src/CMakeLists.txt 中添加set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -latomic")问题解决
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2018年08月07日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • undefined reference to__atomic_store_8
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档