[Boost-bugs] [Boost C++ Libraries] #7454: Compilation error using gcc 4.1.2 (free not in std namespace)

Subject: [Boost-bugs] [Boost C++ Libraries] #7454: Compilation error using gcc 4.1.2 (free not in std namespace)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-10-01 18:51:52


#7454: Compilation error using gcc 4.1.2 (free not in std namespace)
------------------------------+---------------------------------------------
 Reporter: anonymous | Owner: matthiasschabel
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: units
  Version: Boost 1.52.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 '''Error'''
 /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'

 On that line, you'll find:
         std::free(realname);

 In order to get the software to build, I had to change to:
         free(realname);

 '''Environment'''
 [davidsj2_at_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-__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_at_optimus ~]$ uname -a
 Linux optimus 2.6.18-275.7.1.el5.572g0000 #1 SMP Mon Oct 31 19:15:23 EDT
 2011 x86_64 x86_64 x86_64 GNU/Linux
 [davidsj2_at_optimus ~]$ tail /home/davidsj2/include/boost/version.hpp

 //
 // BOOST_LIB_VERSION must be defined to be the same as BOOST_VERSION
 // but as a *string* in the form "x_y[_z]" where x is the major version
 // number, y is the minor version number, and z is the patch level if not
 0.
 // This is used by <config/auto_link.hpp> to select which library version
 to link to.

 #define BOOST_LIB_VERSION "1_51"

 #endif

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7454>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC