我正在运行安装了 cygwin 的 Windows 7,并尝试使用一些较新的 C++ 功能。我知道,为了启用这些功能,我必须通过 g++ -std=c++0x 标志,但这给了我以下错误:
cc1plus: error: unrecognized command line option "-std=c++0x"
我发出的导致该错误的命令行是:
g++-3 hello.cpp -std=c++0x -o hello
g++-3的原因是因为windows的符号链接有问题。我在 cygwin 终端中使用了 g++,结果还是一样的。
有任何想法吗?