This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc ver 3.0.4 problem[s] . .
- From: Joe Buck <Joe dot Buck at synopsys dot com>
- To: nsukumar at ucdavis dot edu (N. Sukumar)
- Cc: gcc at gnu dot org
- Date: Thu, 5 Sep 2002 00:44:47 -0700 (PDT)
- Subject: Re: gcc ver 3.0.4 problem[s] . .
> Sorry for the trouble! I saw gcc.gnu.org/gcc-2.0/caveats.html and
> thought of dropping you an e-mail for some much-needed help. Have a
> problem on-hand! In a recent upgrade (april) the g++ compiler here
> was upgraded to gcc version 3.0.4 (previous version was 2.96 I think)
> on a SGI Origin 2000, and now lo and behold my code has one too many
> conflicts with the compiler.
The ISO C++ standard says that the standard classes, such as set<T>,
are in the std:: namespace. Up until version 3.0, g++ had them in the
global namespace instead. You need to either change references to
standard template classes like set, to std::set, or use "using"
directives.