[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: std::endl ???
From: Christian Loose <Christian.Loose () hamburg ! de>
Date: 2002-07-10 11:16:19
[Download RAW message or body]
> Hi!
> It seems that gcc 3.1 doesn't like std::endl, widely used, for example, in
> kdegames/atlantik.
> It complains that "endl undeclared in namespace std".
> After stripping all the std::'s, atlantik compiled fine.
> I'm not attaching a patch because I'm afraid that these are there for
> a reason - maybe other compilers require it ?
> So what's the correct way ? I'm not a C++ expert so I can't judge it...
>
> With regards, Pavel Troller
Hi!
std::endl is correct. std::endl is declared in the header <ostream>. So I guess the \
sources lacks an #include <iostream>.
bye
Christian Loose
>
> > > Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
>
> > Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic