Boost C++ Libraries: Ticket #2569: export macro cannot be used on same line # in different files in same translation unit https://svn.boost.org/trac10/ticket/2569 <p> In export.hpp the BOOST_CLASS_EXPORT macro calls the BOOST_CLASS_EXPORT_GUID macro which uses the <span class="underline">LINE</span> directive in an attempt to create a globally unique variable name. However, if multiple headers use the aforementioned macro on the same line #, and are included in the same translation unit, compilation will fail due to variable redefinition. This scenario isn't unlikely, as I had three conflicting headers out of the five I included in a single cpp. I have attached a patch in unified diff format that fixes this issue for me, but has not been run through any unit tests. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2569 Trac 1.4.3 kfriddile@… Fri, 05 Dec 2008 16:51:08 GMT attachment set https://svn.boost.org/trac10/ticket/2569 https://svn.boost.org/trac10/ticket/2569 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_serialization.patch</span> </li> </ul> Ticket Robert Ramey Thu, 11 Dec 2008 17:12:09 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2569#comment:1 https://svn.boost.org/trac10/ticket/2569#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> This looks ok. I rolled in a version of this patch to my local system where it will eventually migrate into the package. </p> <p> Robert Ramey </p> Ticket