Re: Shared object use

From: Nick van Eijndhoven (Nick@phys.uu.nl)
Date: Mon Aug 16 1999 - 16:17:42 MEST


"Andrew Askew (padley)" wrote:
> 
> Hello ROOTers!
> 
> I've been experiencing a strange phenomena when it comes to adding classes
> via the loading of a shared object from the interpreter.  The normal:
> 
> gSystem.Load("library.so")
> 
> returns without an error, just as it does when it has been sucessful.  But
> attempts to use the classes added from the library result in errors, ROOT
> claims it has no knowledge of the things added from the file.
> Any help would be appreciated,
> 
> Andrew Askew
> Rice University

Hi Andrew,
I experienced a similar problem a long time ago and also found the solution to it.
Make sure that each library has a rootcint produced dictionary with a unique
name. The problem you describe above happens when you load several libs which 
have been created with e.g. all the same name for the dict files.
In that case only the classes of the last loaded lib are available.
-- 

                                              Cheers,
                                               Nick.

*----------------------------------------------------------------------*
 Dr. Nick van Eijndhoven                Department of Subatomic Physics
 email : nick@phys.uu.nl                Utrecht University / NIKHEF
 tel. +31-30-2532331 (direct)           P.O. Box 80.000
 tel. +31-30-2531492 (secr.)            NL-3508 TA Utrecht
 fax. +31-30-2518689                    The Netherlands
 WWW : http://www.phys.uu.nl/~nick      Office : Ornstein lab. 172
 ----------------------------------------------------------------------
 tel. +41-22-7679751 (direct)           CERN PPE Division / ALICE exp.
 tel. +41-22-7675857 (secr.)            CH-1211 Geneva 23
 fax. +41-22-7679480                    Switzerland
 CERN beep : 13+7294                    Office : B 160 1-012
*----------------------------------------------------------------------*



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