我正在尝试在我的 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
关于安卓NDK : Error: must be enabled with the -std=c++11 or -std=gnu++11 compiler options,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14014659/