android NDK c++ library

crazy_baoli發表於2019-01-07

android NDK c++ library support

--------------------------------------------

 

 

連結:https://developer.android.com/ndk/guides/cpp-support.html

 

1. libc++.so:

libc++ on Mac OS X or FreeBSD

官方連結:https://libcxx.llvm.org/

 

2. libstdc++.so:

The minimal system C++ runtime library and the default runtime when using ndk-build or the experimental Gradle plugin.

The shared object library for this runtime, libstdc++.so, is an Android-specific implementation of a minimal C++ runtime. It is not the same as the GNU libstdc++ runtime library.

注:不包含標準模板庫以及string型別

 

3. libgnustl_shared.so

The GNU STL (shared library).

 

4. libc++_shared.so

The LLVM libc++ runtime (shared library)

 

 

GNU STL runtime

This runtime is the GNU Standard C++ Library, (libstdc++-v3). Its shared library file is named libgnustl_shared.so. compiles with -std=gnu++11.

libc++ runtime:

This runtime is an Android port of LLVM libc++. Its shared library file is named libc++_shared.so.

By default, this runtime compiles with -std=c++11. As with GNU libstdc++, you need to explicitly turn on exceptions or RTTI support. For information on how to do this, see C++ Exceptions and RTTI.

 

 

相關文章