Ubuntu c++;0x\u警告。h:31:2:错误:

Ubuntu c++;0x\u警告。h:31:2:错误:,ubuntu,g++,Ubuntu,G++,我试图创建一个文件,但出现了这个错误。我是个新手。有人能帮我吗 /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 t

我试图创建一个文件,但出现了这个错误。我是个新手。有人能帮我吗

/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\u VERSION\u FLAG=-std=c++0x
中使用了它,但没有起作用

谢谢,
Addy

不,只需将这些标志(aka选项)传递给编译器。运行
gcc…
,而不是运行
gcc-std=c++0x…
(或者对于较新的编译器运行
-std=c++11
)。

生成文件中以“#”开头的行是注释行。
尝试删除“#”。

删除行开头的
#
。Razeh,我在注释完这一行后才复制到这里。但是谢谢。