title: How to ship a C++ - application with a single boost library
body: <p>at first sorry if the question was asked before, but i found nothing by searching.</p>
  
  <p>At second:</p>
  
  <ul>
  <li>I'm using Kubuntu 12.04,</li>
  <li>gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3,</li>
  <li>boost v1.48.0</li>
  </ul>
  
  <p>As the title says, I have an application which uses the <em>boost / program options</em> Library.</p>
  
  <p>Now I want to ship the source code of the application to my teacher, but he has not installed Boost. I am searching for a way to extract the corresponding source files from the whole boost library to ship only that files, that are really needed.</p>
  
  <p>What I now want is a folder containing the headers and cpp files and a simple <code>make</code> by my teacher on his machine does the job.</p>
  
  <p>But I don't know how to get that files.</p>
  
  <ul>
  <li><p>I've found <code>bcp</code> but I don't know what to do with the output. There are .hpp and .cpp files but when I try to compile I get errors over errors...</p></li>
  <li><p>Then I've seen the <code>bootstrap.sh</code> script in the boost folder and I called it with <code>bootstrap.sh --with-libraries=program_options</code>. That constructed a binary library and header files for <strong>every</strong> library.</p></li>
  </ul>
  
  <p>Now I used the <code>libboost_program_options.a</code> from the second step and the header files from the first step <em>together</em>:</p>
  
  <p>I put the path to the headers with <code>-I path_to_header</code> on the include-path and linked statically against <code>libboost_program_options.a</code>.</p>
  
  <p>That even comiled and ran perfectly, but only on my machine and not on the machine of a friend, who is using Fedora 17 with gcc 4.7.x.</p>
  
  <p>Is there any working and easy way like <em>"put that header files and that cpp files in a folder and add the path to the cpp files to the list in your Makefile and then run make and HEY there you have the program"</em>?</p>
  
  <p>Thanks</p>