English 中文(简体)
如何在汇编Andink(r7)的C.Cpp文档时采用“C++0X”试验标准?
原标题:How to turn on the "C++0X" experimental standard when compiling .cpp files in Android-ndk (r7)?

在审查“Rodid-ndk-linux_x86/sources/cxx-stl/gnu-libstdc++/include/memory”负责人档案时,我发现该负责人根据STL负责人的其他档案。

__GXX_EXPERIMENTAL_CXX0X__

国旗。 我认为,这一旗帜与“C++0X”标准有关,这一标准可能在安康乐团第7号试验中。 然而,我想在我的项目中采用这一C++标准。 (我无法确定这一“C++0X”标准是否因违约而过时)

我想知道,我如何在汇编安康项目“项目/jni”目录中的投放这一旗帜。 或者,我如何在申请中使用“C++0X”试验标准。

是否需要在“Android.mk”/“Application.mk”档案中具体注明旗帜,例如:LOCAL_CPPFLAGS和/或PP_CPPFLAGS。 (我在“Application.mk”中使用“APP_STL:= gnustl_static”

感谢任何建议。

Lawrence Tsang

最佳回答

C++03不是试验标准,而是违约。

然而,C++0X是一种实验标准。 其正式名称现已定为C++11,但在海合会(以及其它地方)执行并不完善。 可以通过向海合会通过<编码>-std=c++0x来实现。 查阅feature status page,然后抱怨说有些事情已经破裂。

问题回答

暂无回答




相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签