This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Dynamic Loading of Class Implementation at Runtime.
- To: scherrey at proteus-tech dot com
- Subject: Re: Dynamic Loading of Class Implementation at Runtime.
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 10 Dec 1998 12:57:51 -0200
- Cc: EGCS Development Group <egcs at cygnus dot com>
- References: <366F6850.9A1FA95A@gte.net>
On Dec 10, 1998, Benjamin Scherrey <scherrey@gte.net> wrote:
> information on how to load, at runtime, from a shared library, the
> implementation of a class (or its subclass) and then be able to unload
> it and load a new implementation.
I don't quite understand. There's no important difference between the
implementation of C functions and C++ methods, from the point of view
of a shared library. The only relevant difference is that C++
libraries may contain dynamic initialization, and destructors of
dynamically initialized objects won't be run when the library is
unloaded, only when the program terminates (and thus the program will
probably crash :-(
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil