title: equivalent gcc flags for g++ call
body: <p>I'm playing around with a toolchain that seems to wrap gcc (qcc), but also uses g++ for a few things. This caused a bit of confusion when I couldn't link libs I built with g++ using g(q)cc even though it was for the same architecture (due to missing lib errors). After a bit more research, I found that g++ is basically gcc with a few default flags and a slightly different interpretation mechanism for file extensions (there may be other differences I've glanced over). I'd like to know exactly which flags can be passed to gcc to amount to the equivalent g++ call. For instance:</p>
  
  <pre><code>g++ -g -c hello.cpp   // I know at the very least that this links in stl
  gcc -g -c -???        // I want the exact same result as I got with g++... what flags do I use?
  </code></pre>
  
  <p>The way the tool chain is set up makes it sort of difficult to simply replace the gcc calls with g++. It'd be much easier to know which flags I need to pass.</p>