Hi Dmitri.
you could link your lib explicitely with libPhysics.so so it will be
loaded by the system whenever you load your library.
-- Fons
On Wed, May 30, 2001 at 09:33:28AM -0500, Dmitri Litvintsev wrote:
>
>
> Hi ROOTers,
>
> I have the following problem:
> I have a library whihc I want to load from root prompt.
> I do as I was doing long time ago:
>
> root [0] .L lib/Linux2-KCC_4_0/libRootEventDisplayGraf.so
>
> and get this :
>
> dlopen error:
> /cdf/home/litvinse/evd/./lib/Linux2-KCC_4_0/libRootEventDisplayGraf.so:
> undefined symbol: __ct__8TVector2FdT1
> Load Error: Dynamic link library
> /cdf/home/litvinse/evd/./lib/Linux2-KCC_4_0/libRootEventDisplayGraf.so can
> not load
> *** Interpreter error recovered ***
> Real time 0:0:1, CP time 0.010
>
> Apparently I use TVector2 and the ROOT library which contains its
> definition is not loaded. I have to do:
> 1) figure out what library I need
> 2) load it by hand: gSystem.Load("$ROOTSYS/lib/libPhysics.so");
>
> now it works fine:
>
> root [1] .L lib/Linux2-KCC_4_0/libRootEventDisplayGraf.so
> Real time 0:0:0, CP time 0.070
>
> Question: Is there any means of forcing automatic loading of
> necessary libraries in this case?
>
> regards
> Dmitri Litvintsev
>
> /----------------------------------------------------------\
> | Tel: (630) 840 5005 |
> | FAX: (630) 840 2968 |
> | office: 169-E CDF Trailers |
> | E-mail: litvinse@fnal.gov |
> \----------------------------------------------------------/
>
>
>
--
Org: CERN, European Laboratory for Particle Physics.
Mail: 1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248
WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7677910
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:47 MET