Re: [ROOT] Library associated to a class

From: by way of Christophe Delaere (delaere@fynu.ucl.ac.be)
Date: Wed Oct 22 2003 - 11:34:20 MEST


Hi,

Here are 2 of these (for Linux with bash):
(1)
cd $ROOTSYS/lib
for i in *.so; { echo $i; nm $i | grep -i classname; }
You will see the list of all libs, followed by the symbols related with your
class. Look at the one with a "T" in front (not a U). This is the one you are
looking for.

(2)
simply look in which directory is the class defined. For that you must have
the full source tree. There is one library per directory:
cd $ROOTSYS
find ./ -name classname.cc
Look at the directory were it is found. Only the case may differ.

Hope this helps,
Christophe.

On Wednesday 22 October 2003 09:51, Pere Mato Vila wrote:
> Dear rooters,
>
>   What is the easiest way for a user to find out what is the ROOT
> library containing a given class? I didn't see any indication in the
> documentation of a class about what library is the one I have to
> link/load to access it. Thanks in advance,
>
>
> ------------------------------------------------------------
> Pere Mato  CERN, EP Division, CH 1211 Geneva 23, Switzerland
>            e-mail: Pere.Mato@cern.ch    tel: +41 22 76 78696
>            fax:  +41 22 76 79425        gsm: +41 79 20 10855

--
+-----------------------------------------------------------\|/---+

| Christophe DELAERE            office: e253               !o o!  |
| UCL - FYNU                    phone : 32-(0)10-473234    ! i !  |
| chemin du cyclotron, 2        fax   : 32-(0)10-452183     `-'   |
| 1348 Louvain-la-Neuve BELGIUM e-mail: delaere@fynu.ucl.ac.be    |

+-----------------------------------------------------------------+



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET