title: How to link to an unspecified boost version
body: <p>When I link against the boost library (Using Gentoo Linux), it always links to a very specific version of boost:</p>
  
  <pre><code>$ g++ -o foo foo.cpp -lboost_filesystem
  $ ldd foo
  linux-vdso.so.1 (0x00007fffadfff000)
  libboost_filesystem.so.1.54.0 =&gt; /usr/lib64/libboost_filesystem.so.1.54.0 (0x00002aafdf05b000)
  ...
  </code></pre>
  
  <p>The problem is that if other people want to use my program 'foo', they need the same version of boost or they will get linking errors. It doesn't seem like this is the correct behavior. When I add <code>-lboost_filesystem</code> it should link to <code>libboost_filesystem.so</code>, not to <code>libboost_filesystem.so.1.54.0</code>. </p>
  
  <p>What is going wrong here?</p>