smart pointers not working with Android NDK r8
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: 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 my Android.mk file: LOCAL_PATH := $ ( call my - dir ) include $ ( CLEAR_VARS ) LOCAL_CPPFLAGS := - std = c ++ 11 LOCAL_MODULE := native LOCAL_SRC_FILES := native . cpp include $ ( BUILD_SHARED_LIBRARY ) Here is what is in my Application.mk file: NDK_TOOLCHAIN_VERSION = 4.7 APP_STL := stlport_shared I've tried the default GCC 4.6, the experimental 4.7, and the clang3.1