title: compiling Boost linked libraries (Ubuntu)
body: <p>I installed Boost via <code>sudo apt-get install libboost-all-dev</code> on the most recent version of Ubuntu. Now I want to compile a project  that uses the <code>Boost.Serialization</code> library, which <a href="https://stackoverflow.com/questions/846566/using-boost-on-ubuntu/846625#846625">needs to be linked</a>.</p>
  
  <p>I've tried many variants of the following, without success:</p>
  
  <pre><code>gcc -I /usr/lib code.cpp -o compiled /usr/lib/libboost_serialization.a
  </code></pre>
  
  <p>and </p>
  
  <pre><code>gcc -I /usr/lib code.cpp -o compiled -l libboost_serialization
  </code></pre>
  
  <p>The error message is: </p>
  
  <pre><code>error: ‘split_member’ is not a member of ‘boost::serialization
  </code></pre>
  
  <p>`</p>
  
  <p>What am I missing?</p>