bug in g++: cannot redefine endl

Reiner Suikat Reiner.Suikat@dlr.de
Wed Oct 7 08:48:00 GMT 1998


> -----Original Message-----
> From: oliva@araguaia.dcc.unicamp.br
> [ mailto:oliva@araguaia.dcc.unicamp.br]On Behalf Of Alexandre Oliva
> Sent: Mittwoch, 7. Oktober 1998 16:15
> To: Reiner Suikat
> Cc: egcs-bugs@cygnus.com
> Subject: Re: bug in g++: cannot redefine endl
> 
> 
> Reiner Suikat <Reiner.Suikat@dlr.de> writes:
> 
> > I am unable to redefine iostream functions (e.g. endl).
> 
> You're not supposed to.  They're part of the standard library, you
> can't redefine them.
> 
> -- 
> Alexandre Oliva
> mailto:oliva@dcc.unicamp.br mailto:oliva@gnu.org mailto:aoliva@acm.org
> http://www.dcc.unicamp.br/~oliva
> Universidade Estadual de Campinas, SP, Brasil
> 
> 

Sorry, I don't agree! We are working on porting a rather large software project to linux, and it uses a redefined endl. Neither SGI's own compiler nor gnu compiler complain about this on the SGI platform. 
So, if it is not allowed to redefine parts of the standard library, why does gcc allow to do so on SGI?
Besides, what is the big diference in redefining a function of the standard library vs redefinng a function in any other library?

Greetings
Reiner Suikat
--
Reiner Suikat                              Reiner.Suikat@dlr.de
Institute of Flight Guidance               (49)-531-295-2552
DLR
Postfach 32 67
38022 Braunschweig
Germany




More information about the Gcc-bugs mailing list