samedi 28 novembre 2015

C++11 random library in Android JNI

I am trying to compile an Android app with a native component that uses the C++ random library.

My Application.mk file is:

APP_STL := stlport_static
APP_CPPFLAGS += -std=gnu++11
NDK_TOOLCHAIN_VERSION := 4.8

On compilation I get the error:

[armeabi] Compile++ thumb: Project <= main.cpp
/home/user/project/main.cpp:12:18: fatal error: random: No such file or directory
#include <random>

Is the random library available for Android?

Aucun commentaire:

Enregistrer un commentaire