c ++ 0x_warning.h:31:2:error: [英] c++0x_warning.h:31:2: error:
本文介绍了c ++ 0x_warning.h:31:2:error:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图制作一个文件,并得到这个错误。我是一个新手。有人能帮我一下吗。
I was trying make a file and got this error. I am a newbie. Can any one help me here.
/usr/include/c++/4.6/bits/c++0x_warning.h:32:2: error: #error This
file requires compiler and library support for the upcoming ISO C++
standard, C++0x. This support is currently experimental, and must be
enabled with the -std=c++0x or -std=gnu++0x compiler options.
如何使用 -std = c ++ 0x
?
我在我的makefile中使用了这个 #CXX_VERSION_FLAG = -std = c ++ 0x
但是没有用。
How to enable with -std=c++0x
?
I used this in my makefile #CXX_VERSION_FLAG = -std=c++0x
but did not work.
感谢,
Addy
Thanks, Addy
推荐答案
不,只需将这些标记(也称为选项)传递给编译器。而不是运行 gcc ...
,运行 gcc -std = c ++ 0x ...
(或<$对于较新的编译器,c $ c> -std = c ++ 11 )。
No, just pass these flags (aka options) to the compiler. Instead of running gcc ...
, run gcc -std=c++0x ...
(or -std=c++11
for newer compilers).
这篇关于c ++ 0x_warning.h:31:2:error:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文