Re: [ROOT] How to find libraries?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Feb 17 2004 - 09:02:51 MET


Hi Dmitry,

What you request is going to be available very soon in the ROOT distribution.

-we will provide a method
  const char* TClass::GetLibraryPath() const
 returning the path to the library from which the class has been loaded.

-gSystem->Load("libXXX") will not be necessary anymore. A statement like:
  MyClass a;
 will load automatically the library with MyClass.
The current ROOT distribution already contains a utility $ROOTSYS/bin/rlimap
that can create a libXXX.map file for each shared lib in the LD_LIBRARY_PATH.
ROOT searches automatically in your PATH all the libXXX.map files to discover
the library corresponding to a class.

Rene Brun

"Dmitry A. Shtol" wrote:
> 
> How to find library with class which I need? Is there a regular mrthod?
> 
> ==============================================================
> Dmitry A. Shtol                        (SND group)
> Budker Institute of Nuclear Physics



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET