title: undefined reference to `std::__cxx11::basic_string in Boost on Travis CI
body: <p>I am trying to get a C+++ project which uses Boost on GitHub to compile correctly on Travis CI.</p>
  
  <p>First I tried the packages and PPAs on ubuntu, but they were too old(I need at least Boost 1.61).</p>
  
  <p>I got it to work only if I compiled Boost on Travis CI(download, compile), but, unfortunately, the compile time is big (11-18 mins) and the log file is just huge.</p>
  
  <p>Thinking how to get over this issues, I thinked about compiling boost on my machine, zipping, uploading to some web server and just downloading and copying on /usr/local/[include/lib] the corresponding files.</p>
  
  <p><a href="http://pastebin.com/kRPp9A0p" rel="noreferrer">Here</a> is the compiler I used on my machine. I compiled boost using </p>
  
  <pre><code>./bootstrap.sh --prefix=/home/andrei/boostabc
  /usr/bin/time ./b2 install link=static
  </code></pre>
  
  <p><a href="https://github.com/xTachyon/TravisLibTest/blob/master/.travis.yml" rel="noreferrer">Here</a> is the travis file (and repository). In comments is the way I did it with compiling boost.</p>
  
  <p>The problem is that I get a lot of errors:</p>
  
  <pre><code>/usr/local/lib/libboost_filesystem.a(operations.o): In function `(anonymous namespace)::dir_itr_first(void*&amp;, void*&amp;, char const*, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;&amp;, boost::filesystem::file_status&amp;, boost::filesystem::file_status&amp;) [clone .isra.46] [clone .constprop.56]':
  operations.cpp:(.text+0xa8): undefined reference to `std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;::_M_assign(std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;)'
  </code></pre>
  
  <p>I googled this <a href="https://travis-ci.org/xTachyon/TravisLibTest/builds/177441695" rel="noreferrer">errors</a> and I found there might be a misconfig about some C++11 ABI and a macro. I didn't understand very well the explanation and I do not have any idea how to get it working.</p>
  
  <p>I would be grateful if you could point me in the right direction of solving this.</p>