I can\'t figure out how to use shared pointers within my Android project. I\'m using the latest Eclipse ADT on Mac OS X with the Android NDK r8d.
Here is what is in
these settings did it for me:
Application.mk:
NDK_TOOLCHAIN_VERSION=4.7
APP_STL := gnustl_static
Android.mk:
LOCAL_CFLAGS :=-D__GXX_EXPERIMENTAL_CXX0X__ <--important
LOCAL_CPPFLAGS := -std=c++11
Eclipse Settings: C/C++ General\Path and Symbols should contain:
C:\android\ndk\sources\cxx-stl\gnu-libstdc++\4.7\include
C:\android\ndk\sources\cxx-stl\gnu-libstdc++\4.7\libs\armeabi\include