[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
C++ static constructors in libltdl modules [[Was Re: revised patch for g
From: |
Gary V . Vaughan |
Subject: |
C++ static constructors in libltdl modules [[Was Re: revised patch for glib compilation]] |
Date: |
Tue, 20 Mar 2001 20:39:35 +0000 |
On Tuesday 20 March 2001 4:29 am, Tim Janik wrote:
> On Tue, 20 Mar 2001, Gary V. Vaughan wrote:
> > > (another implication just sprang to my mind, GModule doesn't currently
> > > handle static C++ constructors
> >
> > Nor does libltdl, since lt_dlsym() doesn't really work with the C++ name
> > mangler. Unfortunately, this means that the dlopen concept doesn't
> > really port to C++. I can imagine a hairy workaround, but I don't
> > inflict C++ on myself outside of work *grin* =)O|
>
> oh, i thought someone had implemented the code in libltdl to get static
> c++ constructors to work.
Not to my knowledge, though I haven't paid as much attention to the
multi-language branch (libtool-1.5 to be) as I would have liked. So it may
have gone in without my noticing...
> anyways, in the case such code arrives, it may
> only be called after successfull g_module_init(). that means for libtool,
> there must be ways to supress automatic constructor initialization at
> loading time and do them on demand later on.
Yikes! I'm Cc:ing the libtool list to record this information for posterity,
and incase any of the KDE folks that lurk here know better than I do :-)
Cheers,
Gary.
--
___ _ ___ __ _ mailto: address@hidden
/ __|__ _ _ ___ _| | / / | / /_ _ _ _ __ _| |_ __ _ ___ address@hidden
| (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \
\___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/
home page: /___/ /___/ gpg public key:
http://www.oranda.demon.co.uk http://www.oranda.demon.co.uk/key.asc
- C++ static constructors in libltdl modules [[Was Re: revised patch for glib compilation]],
Gary V . Vaughan <=