Re: shared-lib info for other OS (than HPUX)?

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Tue Jun 24 1997 - 18:26:45 MEST


Hi Robert,

   as far as I know only the HP-UX shared lib interface
has a call to list all loaded libraries. What I can add,
however, is a ListSymbols() for non-HPUX. If somebody
knows how to list all shared libs loaded via dlopen, please
let me know so I can add it.

You can interface from a script to shared libraries containing
C function, but you will have to use rootcint to generate the 
interface stubs. Look in rootcint -?
and http://root.cern.ch/root/roottalk/0442.html
to see what to do. Specifically, add for each function a line
like

#pragma link C++ function Strip;
#pragma link C   function copy;

to your LinkDef.h file.

Cheers, Fons.


Robert Casties wrote:
> 
> Hello rootmakers!
> 
> Why is there no information about shared libraries like the
> TSystem::ListLibraries() on other unices? Will there be some in the future
> or will this feature not be supported?
> 
> A somewhat related question: is it possible to interface from a script to
> a shared library, containing only "ordinary" procedures? Or do I have to
> write a "wrapper" class and compile this as a shared library?
> 
> Thanks
>         Robert

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland          Phone: +41 22 7679248
E-Mail: Fons.Rademakers@cern.ch              Fax:   +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:19 MET