This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ and static data members...
- To: Theodore Papadopoulo <Theodore dot Papadopoulo at sophia dot inria dot fr>
- Subject: Re: C++ and static data members...
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 04 Sep 1999 00:33:18 -0300
- Cc: Joe Buck <jbuck at synopsys dot com>, gcc at gcc dot gnu dot org, martin at mira dot isdn dot cs dot tu-berlin dot de
- References: <199909032316.BAA24387@mururoa.inria.fr>
On Sep 3, 1999, Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr> wrote:
> First, let me be clear. I do not want a new feature. I just find the current
> behaviour strange and non-natural from the programmer's view. If there is no
> way to improve that at small cost, too bad...
But there is: don't define the static function inline; define it in
the implementation file only. This will make sure the object file in
the library will be sucked in, bringing with it the static
initializers.
> Boy, I wanted to learn how to use libtool, it is an occasion...
Please note that libtool doesn't support any language other than C
yet, although it does work with g++, by luck, on a couple of
platforms.
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{dcc.unicamp.br,guarana.{org,com}} aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them