Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7473: clang defines __GNUC__ and confuses the libstdcpp3.hpp configuration header
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-19 13:23:50
#7473: clang defines __GNUC__ and confuses the libstdcpp3.hpp configuration header
--------------------------------------------------+-------------------------
Reporter: philipp.moeller@⦠| Owner: johnmaddock
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: config
Version: Boost 1.51.0 | Severity: Problem
Resolution: wontfix | Keywords:
--------------------------------------------------+-------------------------
Changes (by johnmaddock):
* status: new => closed
* resolution: => wontfix
Comment:
>What is needed here is to use {{{__GLIBCXX__}}} to detect the version of
libstdc++.
That's what we used to do originally. However, it caused a whole bunch of
problems and we were specifically advised against doing that by the
libstdc++ developers. The issue is that {{{__GLIBCXX__}}} can have a
higher value for say gcc-4.4.x than for gcc-4.5.0 but fewer features. I
believe the bug here is in clang (or in the way you're using it). As far
as I can see the only reliable way to support non-standard configurations
like this is to use the supplied configure script to generate a custom
configuration:
http://www.boost.org/doc/libs/1_53_0/libs/config/doc/html/index.html#boost_config.configuring_boost_for_your_platform.using_the_configure_script
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7473#comment:5> 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:12 UTC