Re: Root system not initialized

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Jan 28 2000 - 17:51:50 MET


You forgot to call the TROOT constructor.
See examples of main programs in $ROOTSYS/test directory,
for example hsimple.cxx

Rene Brun

Huaizhang Deng wrote:
> 
> Hi:
> 
> I wrote a program which uses the root library. When I run
> the program in interactive session by using CINT, there is
> no problem but slow. Therefore, I decided to compile it
> and link it to the root library to get a executable file.
> There is no problem to compile it. However, when I run the
> executable file, I got the error message "Root system not
> initialized" when the program tries to open a root file by
> "TFile *f =new TFile(filename, "old");" .  Do you know how
> to solve this problem? I am using 2.23/08 version.
> 
> Huaizhang



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