[ROOT] a question on ROOT Tree

From: Xie Wei (xiewei@rcf2.rhic.bnl.gov)
Date: Sun Dec 16 2001 - 17:32:15 MET


Hi all

I encounted the following problems when running the compiled code.

If the "newClass" is interpreted by rootcint, the following code works
well:

  evtBranch = new newClass;
  rawtree->Branch("Event",  "newClass", &evtBranch, bsize, split);

if "newClass" is not interpreted, then the compilation is still OK
but I got the following problem:

        the code does not comlain anything when executing the first line,
i.e. evtBranch = new newClass since the newClass is defined in a shared
library and being linked during the compilation.

	but when processing the 2nd line, it gives the errors like:

		>> newClass: can not be found


Thanks!
--Wei



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:12 MET