我正在尝试使用 g++
和 -std=c++11
或 c++0x
标志进行编译。
但是,我得到这个错误
cc1plus: error: unrecognized command line option "-std=c++11"
G + + ——版本
g++ (GCC) 4.1.2 20080704 (Red Hat 4.1.2-54)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.