title: How does g++ find the Standard libraries
body: <p>So I'm currently trying to compile something with a newer version of g++ (4.7) than the version of CentOS 6.5.</p>
  
  <p>I'm running supports through yum. I've got a 4.7 g++ binary ready to go, and switched the linking so that /usr/bin/g++ links to the binary I want.</p>
  
  <p>This has been working, but now g++ can't find any of the c++ standard libraries (for instance <code>&lt;algorithm&gt;</code> and <code>&lt;iostream&gt;</code>).</p>
  
  <p>I was wondering how g++ loads these libraries / where these libraries are kept so I can figure out how to get them to properly import!</p>
  
  <p>Thanks!</p>