Boost C++ Libraries: Ticket #3427: Serialization linker errors https://svn.boost.org/trac10/ticket/3427 <p> The MS header file excpt.h has a </p> <pre class="wiki"> #define exception_code _exception_code </pre><p> which leads to problems if not consistently included. </p> <p> The bottom line is, that archive_exception.cpp needs to be compiled with exactly the same windows headers included (excpt.h gets included by windows.h) as any sources including archive_exception.hpp, which is generally not possible to ensure. </p> <p> The only fail-proof way I could see is to always have </p> <pre class="wiki"> #if defined(BOOST_WINDOWS) #include &lt;excpt.h&gt; #endif </pre><p> inside archive_exception.hpp, globally mapping exception_code to _exception_code. Patch attached. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3427 Trac 1.4.3 Hartmut Kaiser Tue, 08 Sep 2009 22:15:51 GMT attachment set https://svn.boost.org/trac10/ticket/3427 https://svn.boost.org/trac10/ticket/3427 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">archive_exception.hpp.diff</span> </li> </ul> Ticket Robert Ramey Fri, 11 Sep 2009 18:18:15 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3427#comment:1 https://svn.boost.org/trac10/ticket/3427#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> patch moved into trunk </p> Ticket