How to use the boost library (including shared_ptr) with the Android NDK and STLport

前端 未结 4 715
时光说笑
时光说笑 2020-12-07 14:04

This is more of an answer than a question, because I\'ve figured it out, at least as far as cleanly compiling the library. The main issue for me was to get shared_ptr workin

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-07 14:37

    The current version of Android NDK (r9) now supports exceptions.

    The capabilities of the various runtimes vary. See this table:

              C++       C++   Standard
              Exceptions  RTTI  Library
    system    no           no        no
    gabi++   yes          yes        no
    stlport  yes          yes       yes
    gnustl   yes          yes       yes
    

    stlport can get used in non-GPL binarys. It's still flagged as experimantal, but you can use it with clang and gcc.

    See http://developer.android.com/tools/sdk/ndk/

提交回复
热议问题