This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: STL doesn't compile with gcc 2.8.1
Maurizio Loreti wrote:
>
> You didn't understand; upgrade. Look:
"Upgrade!"
This is the stupidest solution everyone gives. Yes, upgrading _might_
solve the problem. But when the FAQs claim that STL is supposed to work
with 2.8 onwards, people expect it to work. May be the FAQs need to be
updated or may be I am making some mistake which might exist even after
upgrading.
Please try to show a little insight into the problem.
Raghu.
> MLO@mlinux 15 $ g++ --version
> 2.95.1
> MLO@mlinux 16 $ g++ -ansi -Wall -o foo foo.cpp
> MLO@mlinux 17 $ ./foo
> top: 1
> top: 2
> top: 3
> 3
> 2
> 1
> MLO@mlinux 18 $
>
> --
> Maurizio Loreti http://www.pd.infn.it/~loreti/mlo.html
> Univ. of Padova, Dept. of Physics - Padova, Italy loreti@pd.infn.it