相关疑难解决方法(0)

cc1plus:错误:使用g ++无法识别的命令行选项"-std = c ++ 11"

我正在尝试编译使用g++-std=c++11c++0x标志.

但是,我收到此错误

cc1plus: error: unrecognized command line option "-std=c++11"
Run Code Online (Sandbox Code Playgroud)

g ++ --version

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.
Run Code Online (Sandbox Code Playgroud)

c++ compiler-errors g++ std c++11

85
推荐指数
2
解决办法
19万
查看次数

标签 统计

c++ ×1

c++11 ×1

compiler-errors ×1

g++ ×1

std ×1