Adding #include <boost/asio.hpp> results in "has different size" problems
<p>As writting a (so far) quite simple C++ application (actually I just began to migrate our app away from Qt and replacing it's features mostly by boost) I encountered 'a common' error as follows:</p>

<blockquote>
  <p>(path trimmed)\libboost_system.a(error_code.o): duplicate section
  .rdata$_ZTSN5boost12noncopyable_11noncopyableE[__ZTSN5boost12noncopyable_11noncopyableE]'
  has different size</p>
  
  <p>(path trimmed) \libboost_filesystem.a(codecvt_error_category.o):
  duplicate section
  .rdata$_ZTSN5boost12noncopyable_11noncopyableE[__ZTSN5boost12noncopyable_11noncopyableE]'
  has different size</p>
</blockquote>

<p>I'm obviously using system and filesystem libraries and everything went smoothly just until now, when included <strong>asio</strong> header</p>

<pre><code>#include &lt;boost/asio.hpp&gt;
</code></pre>

<p>because of this single line of code: <code>return boost::asio::ip::host_name();</code></p>

<p>As I understood from boosts documentation, asio is header only library and thus I did not include any other boost library and yet libboost_system and libboost_filesystem started to cause these problems.</p>

<p>I'm working on Win 7, using MinGW. I've built all the boost libs in one shot issuing following two commands:</p>

<pre><code>bootstrap mingw
b2 toolset=gcc
</code></pre>

<p>I used the same MinGW set for it as I'm using now to build my app. And of course am I using these pre-built libraries to link with my app.</p>

<p>When I remove the ASIO include, my build works again.</p>

<p>Please comment if I missed some important part of my configuration for the sake of simplicity.</p>