This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with putenv() in global constructor


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]