简体   繁体   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

I am trying to use one big c++ library in my android application. 我想在我的android应用程序中使用一个大的c ++库。 I am using eclipse with android ndk plugin. 我正在使用eclipse与android ndk插件。 When I run it, I got this error message; 当我运行它时,我收到此错误消息;

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.

What should I do? 我该怎么办? How can I enable this option in eclipse? 如何在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