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]

Re: How can I make ELF library in C++ ?


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


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