Sav*_*nar 11 android android-ndk
我想在我的android应用程序中使用一个大的c ++库.我正在使用eclipse与android ndk插件.当我运行它时,我收到此错误消息;
This file requires compiler and library support for the ISO C++ 2011 standard.This
support is currently experimental, and must be enabled with the -std=c++11 or
-std=gnu++11 compiler options.
Run Code Online (Sandbox Code Playgroud)
我该怎么办?如何在eclipse中启用此选项?
Gun*_*iez 13
CFLAGS在您的Android.mk:中添加"-std = c ++ 11" :
LOCAL_CFLAGS += -std=c++11
Run Code Online (Sandbox Code Playgroud)