繁体   English   中英

Android NDK:错误:必须使用-std = c ++ 11或-std = gnu ++ 11编译器选项启用

[英]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.mkCFLAGS

LOCAL_CFLAGS += -std=c++11

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM