sinat_31086489
kaerwar
2019-01-10 13:39

android ndk16 版本编译 boost库报错

升级ndk16后进行对老项目编译 发现gcc相关内容不再支持

  • boost库需要用到gcc编译,但是目前ndk16无法支持\
#如何再不动boost库的情况下编译通过

In file included from /usr/src/myapp/sdk/include/boost/boost/bind/mem_fn.hpp:25:
/usr/src/myapp/sdk/include/boost/boost/get_pointer.hpp:48:23: error: redefinition of 'get_pointer' as different kind of symbol
template T * get_pointer(std::auto_ptr const& p)
^
/usr/src/myapp/sdk/include/boost/boost/get_pointer.hpp:20:23: note: previous definition is here
template T * get_pointer(T * p)
^
/usr/src/myapp/sdk/include/boost/boost/get_pointer.hpp:48:40: error: no member named 'auto_ptr' in namespace 'std'
template T * get_pointer(std::auto_ptr const& p)
~~~~~^
/usr/src/myapp/sdk/include/boost/boost/get_pointer.hpp:48:49: error: 'T' does not refer to a value
template T * get_pointer(std::auto_ptr const& p)
^
/usr/src/myapp/sdk/include/boost/boost/get_pointer.hpp:48:16: note: declared here
template T * get_pointer(std::auto_ptr const& p)
^
/usr/src/myapp/sdk/include/boost/boost/get_pointer.hpp:48:52: error: expected expression
template T * get_pointer(std::auto_ptr const& p)
^
/usr/src/myapp/sdk/include/boost/boost/get_pointer.hpp:48:61: error: expected ';' at end of declaration
template T * get_pointer(std::auto_ptr const& p)
^
;
/usr/src/myapp/sdk/include/boost/boost/get_pointer.hpp:49:1: error: expected unqualified-id
{
^

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

相关推荐