title: which version of g++ does Scons pick | unrecognized command line option "-std=c++11"
body: <p>I am experiencing a problem when using Scons 2.3.0 in OpenSUSE:</p>
  
  <p>When I added "-std=c++11" option, I saw the error</p>
  
  <pre><code>cc1plus: error: unrecognized command line option "-std=c++11"
  </code></pre>
  
  <p>I realized that it is because my g++ version was too old (4.1). So I upgraded it to 4.7.1.
  The follow thing are also done</p>
  
  <ol>
  <li>I had the path of the g++4.7.1 moved to the first place in $PATH (before /usr/bin)</li>
  <li><p>when I try</p>
  
  <pre><code>  which g++
  </code></pre>
  
  <p>I saw it shows the path to my new g++4.7.1</p></li>
  <li><p>when I try <code>g++ -v</code> I also saw the version 4.7.1</p></li>
  <li><p>WITHOUT using scons, if I try to build a simple helloWorld with <code>g++ -std=c++11 helloWorld.cpp</code>, everything works fine.</p></li>
  <li><p>Now by using scons, I saw the <code>cc1plus: error: unrecognized command line option "-std=c++11"</code></p></li>
  <li>I even added <code>s.system("g++ -v")</code> in my SConstruct file, it still prints the right version (4.7.1)</li>
  </ol>
  
  <p>So I am not sure which part I did wrong.</p>
  
  <p>Please give me some advice</p>
  
  <p>Thanks in advance for the help!</p>