Re: [ROOT] Libraries

From: Victor Perevoztchikov (perev@bnl.gov)
Date: Fri Apr 14 2000 - 18:23:58 MEST


> Is there a way to 'look' at all symbols in a shared library? If not: somebody
> must have built that library and she could tell me what she has put in it...

On UNIX it is:
 nm -p libsome.so | grep MyClass

On NT it is also possible (but not by nm).

Victor



Ingo Strauch wrote:
> 
> Victor Perevoztchikov wrote:
> >
> > I want only to add, that if for somebody this is not convenient, it is very
> > easy to load automatically additional libraries in .rootlogon , as we do
> > in STAR.
> 
> I hope that the use of .rootlogon files is one of the first things one gets
> told when one starts to use ROOT ;-)
> 
> Maybe I should give a more concrete example of my problem:
> 
> Let's say I want to use the TLockGuard class. Naive as I am, I try
> 
> ----------------------------------------------------------------------------
> root [1] TLockGuard *mylock = new TLockGuard()
> Error: No symbol TLockGuard in current scope FILE:/tmp/filetUEalg_cint LINE:1
> *** Interpreter error recovered ***
> 
>  *** Break *** segmentation violation
> ----------------------------------------------------------------------------
> 
> Then I can vaguely remember that some libraries are not loaded by default. But
> now I don't know which library it is which contains the TLockGuard class...
> I could load ALL libraries (libEG, libPhysics, libThread, libTreePlayer,
> libTreeViewer and all others I find in $ROOTSYS/lib) but that's certainly not
> what I want.
> 
> The other problem is: some time ago I used the libEG and since then I load it
> in my .rootlogon. But I can't remember the reason for using libEG (i.e. which
> class I used that is in libEG). So now I look for a way to find out what's in
> that library. And if I no longer use these classes I could drop libEG from my
> .rootlogon.
> Is there a way to 'look' at all symbols in a shared library? If not: somebody
> must have built that library and she could tell me what she has put in it...
> 
> Cheers,
> Ingo
> 
> ----------------------------------------------------------------------------
> Ingo Strauch       Budapester Str. 30, 20359 Hamburg, Tel.: +49 40 7421 4722
> ----------------------------------------------------------------------------
> DESY, Group H1/AAC1, Room 1c354      | I.Phys.Inst. RWTH Aachen, Room 28B210
> Notkestr. 85, 22607 Hamburg          |       Sommerfeldstr. 14, 52056 Aachen
> Tel: +49 40 8998-2312 / Fax: -4385   |  Tel: +49 241 80-7183 / Fax: 8888-661
> strauch@mail.desy.de                 |   strauch@toots.physik.rwth-aachen.de
> ----------------------------------------------------------------------------
> www-h1.desy.de/~strauch/      or      www-users.rwth-aachen.de/Ingo.Strauch/
> ----------------------------------------------------------------------------

-- 
Victor M. Perevoztchikov   perev@bnl.gov  perev@vxcern.cern.ch       
Brookhaven National Laboratory MS 510A PO Box 5000 Upton NY 11973-5000
tel office : 631-344-7894; fax 631-344-4206; home 631-345-2690



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