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
{
^

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐