[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ cplusplus-bug 594505 ] endl undefined/gcc3.1.1/freebsd4.6
From: |
David Sugar |
Subject: |
Re: [ cplusplus-bug 594505 ] endl undefined/gcc3.1.1/freebsd4.6 |
Date: |
Wed, 14 Aug 2002 06:30:56 -0400 |
User-agent: |
KMail/1.4.1 |
I think more often we have been using things like "using std::ostream", etc.
So I think the most correct thing to be consistent with other sources in the
package is actually to add "using std::endl" and replace the direct
references to "std::endl" with just "endl". This hopefully is the most
portable solution...
On Tuesday 13 August 2002 16:13, Federico Montesino Pouzols wrote:
> Hi and thanks again! It is also fixed at savannah.
>
> -----------------------------------------------------
> Hello.
>
> I just downloaded the latest cvs sources of
> commoncpp2.
> After gmake -f Makefile.cvs
> & configure
> & gmake
> the compilation stops in mempager.cpp
> due to undefined endl.
>
> Reason:
> "using namespace std" missing.
>
> (This may happen because gcc3.1.1+stdlib++v3 uses
> namespaces while gcc2.95+stdlib++v2 doesn't
> under freebsd4.6.)
>
> Fix:
> Add "using std::endl" or "using namespace std"
> in mempager.cpp.
>
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp