RE: [ROOT] Object in a tree

From: Philippe Canal (pcanal@fnal.gov)
Date: Mon Nov 10 2003 - 18:22:15 MET


Hi Luigi,

You need to link against the dictionary you produce.  In your makefile,
you commented out the revelant lines:

#main : main.o test.o testDict.o
#	$(LD) $(LDFLAGS) $(LIBS) main.o test.o testDict.o \
#		   $(OutPutOpt)$(MAIN)

Cheers,
Philippe

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Luigi Esposito-MACRO
Sent: Monday, November 10, 2003 9:44 AM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] Object in a tree


Hi to all,
I'd like to put in a tree a object that doesn't inherits from a TObject.
I checked at http://root.cern.ch/root/html/TTree.html#TTree:Branch and I 
read that it's possible.
So I tried with a dummy test but I have this error

Error in <TTree::Bronch>: Cannot find class:test

and in the tree there is no trace of the Branch I have defined.
Where is my error?
Thank you,

	Luillo



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET