cc1plus: error: unrecognized command line option “-std=c++11” with g++

Seeing from your G++ version, you need to update it badly. C++11 has only been available since G++ 4.3. The most recent version is 4.7.

In versions pre-G++ 4.7, you’ll have to use -std=c++0x, for more recent versions you can use -std=c++11.

Leave a Comment