[ROOT] Shared library loading under linux

From: Matevz Tadel (Matevz.Tadel@ijs.si)
Date: Sat Mar 25 2000 - 21:53:26 MET


Hi!

Would like to get address of a symbol from a shared library when i load it
with gSystem->Load(<soname>). I know this gets very OS specific ... but is
it possible to retrieve lib handle as returned by
void *dlopen (const char *filename, int flag);

Tried to trace it down the CINT ... got a little cloodgy feeling ...

Is it enough to access
G__sl_handle[G__allsl - 1] and then call G__shl_findsym(...)
or will i be missing sth?

Btw ... why is this not implemented (is implemented only for HPUX) in
Func_t TSystem::DynFindSymbol(const char* module, const char* entry)?


Cheers,
matevz

---------------------------------------------------
 Matevz Tadel,         E-mail: Matevz.Tadel@ijs.si 
 Department of Experimental High Energy Physics F9 
 Jozef Stefan Institute,  Jamova 39,  P.o.Box 3000 
 SI-1001 Ljubljana, Slovenia                       
 Tel.: +386-61-177-3674      Fax: +386-61-125-7074 
---------------------------------------------------



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:22 MET