Boost C++ Libraries: Ticket #2074: Function named VERSION causes problem with configure tools https://svn.boost.org/trac10/ticket/2074 <p> Hi guys, </p> <p> In file: </p> <blockquote> <p> boost/archive/basic_xml_archive.hpp </p> </blockquote> <p> There are many functions with names all in capital. I think that, already, is a bad idea. The problem is that one of them is named VERSION. </p> <p> This is one of the -D flags generated by the automake/libtool suite and thus I cannot compile using the XML archive system without adding a fix (i.e. with -DVERSION="1.3" on the command line it just won't compile.) People at large won't have any control over that one. </p> <p> At this time, what I do is add this at the beginning of the file: </p> <p> #ifdef VERSION #undef VERSION #endif </p> <p> That works for me, but that is not a solution. </p> <p> I would think that the names need to be fixed. All capital names are reserved for macros and using those there is really bad. I would not be too surprised if some of these names would clash with #define's found in the MS-Windows header files too! </p> <p> Thank you. Alexis Wilke </p> <p> P.S. this is still a problem in the current SVN. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2074 Trac 1.4.3 Robert Ramey Fri, 11 Jul 2008 04:28:07 GMT status changed https://svn.boost.org/trac10/ticket/2074#comment:1 https://svn.boost.org/trac10/ticket/2074#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Robert Ramey Fri, 05 Sep 2008 22:37:05 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2074#comment:2 https://svn.boost.org/trac10/ticket/2074#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed in trunk. Pending testing, will migrate to release for next version. </p> Ticket Mon, 03 Nov 2008 14:20:34 GMT milestone deleted https://svn.boost.org/trac10/ticket/2074#comment:3 https://svn.boost.org/trac10/ticket/2074#comment:3 <ul> <li><strong>milestone</strong> <span class="trac-field-deleted">Boost 1.35.1</span> </li> </ul> <p> Milestone Boost 1.35.1 deleted </p> Ticket