Hi Elena, When writing script that uses other scripts (your case), you can either assume that the first script as been already loaded or include it completely (i.e. use the .C not the .h). In addition #include WWclass.h should be #include "WWclass.h" Philippe. -----Original Message----- From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Elena Vataga Sent: Friday, October 05, 2001 7:12 AM To: roottalk@pcroot.cern.ch Subject: [ROOT] "header declared but not defined" Hello! I made class from Tree using MakeClass and trying to use it. It works fine when I load it in root: root [] .L WWclass.C root [] WWclass t root [] t.Loop(); When I am putting the same lines in script: #include WWclass.h ..... TTree *tree2 = (TTree*)dfile->Get("h2"); WWclass tt(tree2); .... I am getting an error: !!!Calling constructor 0x880f1c8.WWclass(tree2) for declaration of ttError: WWclass() header declared but not defined What could it mean? Thank you in advance, Elena
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:02 MET