Re: [ROOT] Loading ROOT libraries on Windows

From: Valeri Fine (fine@bnl.gov)
Date: Wed Jan 16 2002 - 18:12:35 MET


----- Original Message ----- 
From: "Pere Mato" <Pere.Mato@cern.ch>
To: "Roottalk" <roottalk@pcroot.cern.ch>
Sent: Wednesday, January 16, 2002 7:43 AM
Subject: [ROOT] Loading ROOT libraries on Windows


> Hello,
> 
>   I am trying to load standard ROOT libraries within a C++ module using the
> method TSystem::Load(). I seems that it works only if I put the full path
> where the library is. If I use only the library name it generates an "access
> violation" even if I have in the PATH the location where the libraries are.
> 
>   gSystem->Load("libHist")  // Access violation!
>   gSystem->Load("S:/sw/ROOT/v3.01/nt4/root/bin/libHist.dll")  // Works!!
> 

  What is your environment ? Before asking Windows to load DLL ROOT checks the access
  to that library  on its own

  In this case the path to look up is picked from the system.rotor file. The later itself is found under
 %ROOTSYS%/etc. To get the "Windows" behavior the %ROOTSYS%\bin should be in your PATH
  and ROOT search path (within ".rootrc" file) should include $PATH. 

Anyway first make sure your env variables do match that ?


You may want to find system.rootrc and edit it to replace

Root.ShowPath:           false

with

Root.ShowPath:           true

Then you should get some extra output from ROOT.  That may help us to sort things out.
I woiuld recommenr you to install ROOT from

http://www.usatlas.bnl.gov/~fine/downloadRoot.html

This should set your env properly and automatically.

Hope this helps,

  Valeri

>   Any explanation?
> 
> Pere
> 
> ------------------------------------------------------------
> 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
> 
> 
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:39 MET