title: Including header files into static library
body: <p>Since every time when we link against a static library we also need to include the header files, I am wondering if it is possible to archive into the static library, when creating it, those heads?</p>
  
  <p>Say I have two object files <code>foo1.o</code> and <code>foo2.o</code> generated by</p>
  
  <pre><code>gcc foo1.c -I foo1.h -c -o foo1.o
  gcc foo2.c -I foo2.h -c -o foo2.o
  </code></pre>
  
  <p>Gcc tutorials tell us we can generate <code>libfoo.a</code> using</p>
  
  <pre><code>ar libfoo.a foo1.o foo2.o 
  </code></pre>
  
  <p>This must sound silly, but is it possible to put those header files inside libfoo.a when archiving? In this way, when <em>linking</em> against <code>libfoo.a</code>, people no more need to spend hours in order to find and <em>include</em> <code>foo1.h</code> and <code>foo2.h</code>, so there seems to be some benefits in doing so, right?</p>
  
  <p>Thanks for your ideas.</p>