title: Dump include paths from g++
body: <p>I'm trying to write a little build script, and want to determine if the includes are system includes or not. So I want <strong>g++</strong> to tell me the include path's it's using.</p>
  <p><code>cpp -v</code> seems the obvious best shot, but it doesn't give me the C++ paths.</p>
  <p>So I tried:</p>
  <pre><code>g++ -Xpreprocessor -v  
  </code></pre>
  <p>Which doesn't work quite right - <strong>g++</strong> captures the <code>-v</code> for it's own verbose output.</p>