我正在尝试创建一个文件并收到此错误。我是新手。有人能帮我一下吗。
/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
但没有用。
谢谢,
阿迪
不,只需将这些标志(也称为选项)传递给编译器即可。而不是跑步gcc ...
, run gcc -std=c++0x ...
(or -std=c++11
对于较新的编译器)。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)