title: Undefined reference to boost::locale:conv::between
body: <p>I am trying to follow the answer to <a href="https://stackoverflow.com/questions/21730823/struggling-to-convert-vectorchar-to-wstring">my previous question</a> and use <code>boost::locale::conv::between</code> to get a UTF-8 string from <code>vector&lt;char&gt;</code> containing UTF-16 data.  My code is pretty much as in the answer (with some differences in how I get the <code>char *</code>:</p>
  
  <pre><code>char in[length + 1];
  //... populate in with my source data
  in[length] = '\0';
  std::string out = boost::locale::conv::between((const char*)in, std::string("UTF-8"), std::string("UTF-16"));
  </code></pre>
  
  <p>This compiles fine, but during linking I get error</p>
  
  <pre><code>In function `boost::locale::conv::between(char const*, std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, boost::locale::conv::method_type)':
  /usr/local/include/boost/locale/encoding.hpp:186: undefined reference to `boost::locale::conv::between(char const*, char const*, std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, boost::locale::conv::method_type)'
  </code></pre>
  
  <p>This doesn't look right to me.  On possibility I could think of is that I had boost 1.50 installed, so I installed latest 1.55 release - yet I get the same error.</p>