[英]Android NDK: Error: must be enabled with the -std=c++11 or -std=gnu++11 compiler options
我想在我的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.
我该怎么办? 如何在eclipse中启用此选项?
将“-std = c ++ 11”添加到Android.mk
的CFLAGS
:
LOCAL_CFLAGS += -std=c++11
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.