I\'m trying to compile some C++11 sources with Android NDK on Windows, but without much luck. Please note, that I\'ve read some other questions about compiling C++11, but th
LOCAL_CPP_FEATURES += exceptions
LOCAL_CFLAGS += -std=c++11
Should go into Android.mk file. Alternatively, you could put
APP_CFLAGS += -std=c++11
into Application.mk. You can also use APP_CPPFLAGS
instead, so that the C sources in your project (if you choose to add them) could compile (the C compiler will not like -std=c++11
).