I've been stuck for two days trying to compile a simple .so library in CPP for a project I'm working on. For some reason the NDK gives me this result no matter what I try:
fatal error: random: No such file or directory #include <random>
Application.mk
APP_ABI := armeabi armeabi-v7a x86
NDK_TOOLCHAIN_VERSION := clang
APP_STL := gnustl_static
APP_PLATFORM := android-14
Android.mk
APP_ABI := armeabi armeabi-v7a x86
NDK_TOOLCHAIN_VERSION := 4.9
APP_CPPFLAGS := --std=c++11
APP_STL := gnustl_static
APP_PLATFORM := android-14
And the command I build with (I don't use jni or an Android Project)
ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk