How can I make ELF library in C++ ?
Alexandre Oliva
aoliva@redhat.com
Tue Feb 27 14:38:00 GMT 2001
On Feb 27, 2001, Erik Mouw <J.A.K.Mouw@ITS.TUDelft.NL> wrote:
>> PS: Why should I use glib instead of <dlfnc> ?
> Because in that way you can do it in a portable way. Your code compiles
> and runs immediately on Solaris, HP/UX, AIX, IRIX, True64 Unix, *BSD,
> etc. You don't have to change a single line in your code, glib takes
> care of the gory details.
FWIW, libtool comes with libltdl, which is its own portable dlopening
interface, that works even on platforms that don't support dlopening
at all. Even when the library you want to dlopen is a static library!
As long as the dlopening program was linked with libtool, using the
appropriate -dlopen flags, of course :-)
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
More information about the Gcc
mailing list