Boost C++ Libraries: Ticket #7454: Compilation error using gcc 4.1.2 (free not in std namespace) https://svn.boost.org/trac10/ticket/7454 <p> <strong>Error</strong> /home/davidsj2/include/boost/units/detail/utility.hpp: In function 'std::string boost::units::detail::demangle(const char*)': /home/davidsj2/include/boost/units/detail/utility.hpp:48: error: 'mm_free' is not a member of 'std' </p> <p> On that line, you'll find: </p> <blockquote> <p> std::free(realname); </p> </blockquote> <p> In order to get the software to build, I had to change to: </p> <blockquote> <p> free(realname); </p> </blockquote> <p> <strong>Environment</strong> [davidsj2@optimus ~]$ gcc -v Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-<span class="underline">cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux Thread model: posix gcc version 4.1.2 20080704 (Red Hat 4.1.2-52) [davidsj2@optimus ~]$ uname -a Linux optimus 2.6.18-275.7.1.el5.572g0000 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1" title="#1: Bugs: boost.build causes ftjam to segfault (closed: Wont Fix)">#1</a> SMP Mon Oct 31 19:15:23 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux [davidsj2@optimus ~]$ tail /home/davidsj2/include/boost/version.hpp </span></p> <p> <em> </em> BOOST_LIB_VERSION must be defined to be the same as BOOST_VERSION <em> but as a *string* in the form "x_y[_z]" where x is the major version </em> number, y is the minor version number, and z is the patch level if not 0. <em> This is used by &lt;config/auto_link.hpp&gt; to select which library version to link to. </em></p> <p> #define BOOST_LIB_VERSION "1_51" </p> <p> #endif </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7454 Trac 1.4.3 josh.davidson@… Mon, 01 Oct 2012 18:54:45 GMT cc set https://svn.boost.org/trac10/ticket/7454#comment:1 https://svn.boost.org/trac10/ticket/7454#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">josh.davidson@…</span> added </li> </ul> Ticket anonymous Tue, 02 Oct 2012 15:08:23 GMT <link>https://svn.boost.org/trac10/ticket/7454#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7454#comment:2</guid> <description> <p> Same issue w/ gcc 4.4.x and 4.6.x </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Jürgen Hunold</dc:creator> <pubDate>Wed, 05 Nov 2014 09:28:44 GMT</pubDate> <title>owner, status changed https://svn.boost.org/trac10/ticket/7454#comment:3 https://svn.boost.org/trac10/ticket/7454#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Matthias Schabel</span> to <span class="trac-author">Jürgen Hunold</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Jürgen Hunold Wed, 05 Nov 2014 09:29:51 GMT status, version changed; resolution set https://svn.boost.org/trac10/ticket/7454#comment:4 https://svn.boost.org/trac10/ticket/7454#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>version</strong> <span class="trac-field-old">Boost 1.52.0</span> → <span class="trac-field-new">Boost 1.57.0</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> This is fixed with <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/10116" title="#10116: Patches: Port to Boost.Core demangle() (closed: fixed)">#10116</a>. We now use Boost.Core implementation of demangle. </p> Ticket