Hello Andres and Fons, Thank you for reporting this problem. I'll fix this in cint5.14.64. class A { #include "B.h" // B.h is under A:: scope public: B() { G__loadfile("C.h"); // C.h should be in global scope // however, currennt version takes it // as A:: scope. This will be fixed in // cint5.14.64 } }; Thank you Masaharu Goto >Date: Mon, 27 Nov 2000 14:00:37 +0000 >From: Fons Rademakers <Fons.Rademakers@cern.ch> >To: Andre Holzner <Andre.Holzner@cern.ch> >Cc: roottalk@pcroot.cern.ch, Masaharu Goto <MXJ02154@niftyserve.or.jp> >Subject: Re: [ROOT] Error: class,struct,union or type TProof not defined > >Hi Andres, > > these message are due to some problem/limitation in CINT. >I've contacted Masa about this. As far as I can see you can ignore the >messages for the time being (the infile2 is still connected correctly). > >Cheers, Fons. > > >Andre Holzner wrote: >> >> Hello, >> >> another (hopefully) trivial problem: >> >> Here is LlrTupleInfo.C: >> >> class LlrTupleInfo >> { >> public: >> LlrTupleInfo(TTree *ntuple) >> { >> TCanvas *c = new TCanvas; >> >> ntuple->Draw("mh"); >> delete c; >> } >> }; >> >> (I basically want to use Draw() to read the values from the ntuple after >> some user defined >> cut into arrays and I don't want to leave canvases lying around after >> calling the constructor). >> >> I do: >> root [0] .L LlrTupleInfo.C >> root [1] TFile *infile = new TFile("test.root"); >> root [2] LlrTupleInfo *tuple1 = new LlrTupleInfo((TTree >> *)(infile->Get("h7000"))); >> >> which works fine. >> But trying to open a second file (or the same file again) fails: >> >> root [3] TFile *infile2 = new TFile("test.root"); >> Error: class,struct,union or type TProof not defined >> FILE:/tmp/filekBIxS1_cint LINE:1 >> *** Interpreter error recovered *** >> >> I also saw the same message using h7000 (and infile->cd(); ) instead of >> infile->Get(..). >> >> Does somebody have a solution ? >> >> (I'm using 2.26/00 on Linux). >> >> thanks, >> >> Andre >> >> -- >> ------------------+---------------------------------- >> Andre Holzner | +41 22 76 76750 >> Bureau 32 2-C13 | Building 32 >> CERN | Office 2-C13 >> CH-1211 Geneve 23 | http://wwweth.cern.ch/~holzner/ > >-- >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 02 2001 - 11:50:38 MET