Hi Davide, I need access to your file to understand your class structure and see what could be wrong. In the code generated automatically, the initialisation of the classes holding the TClonesArray may be incorrect. You may have to add the static TClonesArray pointer as it is shown in $ROOTSYS/test/Event.h Rene Brun Davide Grandi wrote: > > Dear root family, > I use root version 3.04.02 on Linux RH 7.2 on a double processor > 2.00GHz machine. > I'm reading a tree with TCloneArrays, TRef and TRefArrays. So I > load the tree > > root[0] TFile *f = new TFile("tree.root"); > > and generate the dictionary and shared lib and dinamically link it > > root [1] f.MakeProject("demo","*","recreate++"); > > then I create with MakeSelector a test.C and test.h file > > root [2] Roottree->MakeSelector("test"); > > I include all files *.h of dir demo/ in test.h, but when I try to run on > the tree simply doing for example > > fChain->GetTree()->GetEntry(entry); > cout << entry << endl; > > this gives me the following error > > -------------------------------------------------------------------------- > Warning: Error occured during reading source files > Warning: Error occured during dictionary source generation > > Error: rootcint: error loading headers... > Error in <ACLiC>: Dictionary generation failed! > Error in <TSelector::GetSelector>: file test.C+ does not have a valid > class deriving from TSelector > -------------------------------------------------------------------------- > > BTW using root version 3.03.04 this doesn't happen (and everything works > fine...). Is it a new feature in root version 3.04.02 (gcc 2953) or I'm > doing something wrong? > > Thanks for help and hope not to be boring... > > Cheers > > Davide > > ********************************************************************** > $ Davide Grandi % > $ INFN Milano e-mail Davide.Grandi@mib.infn.it % > $ P.zza delle Scienze 3 phone +39 02 6448 2306 % > $ 20126 MILANO fax +39 02 6448 2367 % > $ ITALY % > $ % > $ at CERN e-mail Davide.Grandi@cern.ch % > $ CH-1211 Geneve CH phone +41 22 767 9403 % > $ Bldg. 506 room R018 % > $ or phone +41 22 767 7560 % > $ Bldg. 576 room R002 % > &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:08 MET