cc1plus: error: nierozpoznana opcja wiersza poleceń „-std = c ++ 11” za pomocą g ++

Próbuję skompilować używającg++ i albo-std=c++11 lubc++0x flagi.

Dostaję jednak ten błąd

cc1plus: error: unrecognized command line option "-std=c++11"

g ++ --wersja

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.

questionAnswers(4)

yourAnswerToTheQuestion