This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]