This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Problem with putenv() in global constructor
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Gregory Shpitalnik <gregory at il dot marvell dot com>
- Cc: gcc at gnu dot org, gcc at gcc dot gnu dot org
- Date: 07 Jan 2003 09:36:59 -0200
- Subject: Re: Problem with putenv() in global constructor
- Organization: GCC Team, Red Hat
- References: <3E1A9A8E.A0B99971@il.marvell.com>
On Jan 7, 2003, Gregory Shpitalnik <gregory@il.marvell.com> wrote:
> I found some strange putenv() function behavior when it's used in a
> global object (C++ code).
> constructor. I work on SPARC/Solaris 8 with g++/gcc version 2.95.3
> 20010315 (release).
Well, then you're probably going to have to discuss this with Sun
engineers who wrote their C library. putenv() is not implemented in
GCC, GCC just uses whatever the C library of the OS you're running
has to offer.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer