This is the mail archive of the
mailing list for the libstdc++ project.
Re: Upgrading libstdc++ questions
- From: Jonathan Wakely <cow at compsoc dot man dot ac dot uk>
- To: Samir Rajguru <srajguru at brocade dot com>
- Cc: libstdc++ at gcc dot gnu dot org, gcc-help at gcc dot gnu dot org
- Date: Wed, 28 Aug 2002 14:30:50 +0100
- Subject: Re: Upgrading libstdc++ questions
- References: <2F37CED150E21640A9C6E75B8BE6AF83010F7B7A@hq-ex-4>
First of all, gcc-patches is the list for posting patches that will be
applied to the compiler sources, not questions about usage.
Be warned, I might be talking rubbish here ... just trying to help because
noone else has replied ...
On Wed, Aug 28, 2002 at 02:13:18AM -0700, Samir Rajguru wrote:
> I am trying to upgrade libstdc++ on my gcc installation. The version of gcc
> I am using is 2.95.3. The version of libstdc++ I am trying to upgrade to is
> 2.90.8 (the latest version that is supposed to work on 2.95.3).
> Directions say that I need to rebuild libgcc.a along with the new libstdc++
> for things such as namespaces to work correctly (e.g. to use the stl "std"
> However, my current gcc installation already has namespaces correctly
> working (I am able to use the STL "std" namespace, etc.).
As I understand it, the issue isn't being able to use std::, but that you
can use basic_string, vector etc. without qualifying them as being in the
By default GCC 2.95 ignores std:: qualifiers completely. User-defined
namespaces will work fine, but it makes no difference whether you qualify
standard library names with "std::" or not, the compiler ignores it and
acts as though all the standard names are in the global namespace.
I believe that it's this behaviour that's being referred to as namespaces
not working correctly.
Try this (replacing path to libgcc.a as necessary):
nm -C /usr/lib/libgcc.a | fgrep "exception::what(void)"
If exception::what() isn't qualified with std:: then I think you need to
rebuild libgcc.a with the -fhonor-std flag.
Have you tried it? If the instructions say you should then I'd recommend
at least trying it. People who know what they're talking about (i.e. not me)
should be able to help you further.