title: cc1plus: error: unrecognized command line option "-std=c++11" with g++
body: <p>I'm trying to compile using <code>g++</code> and either the <code>-std=c++11</code> or <code>c++0x</code> flags.</p>
  
  <p>However, I get this error </p>
  
  <pre><code>cc1plus: error: unrecognized command line option "-std=c++11"
  </code></pre>
  
  <p><strong>g++ --version</strong></p>
  
  <pre><code>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.
  </code></pre>