Re: [ROOT] Two classes created by myself cannot work together

From: Rene Brun (brun@pcbrun.cern.ch)
Date: Sun Jun 27 2004 - 08:50:03 MEST


Please give more information including
  -a very short script reproducing the problem
  -the ROOT version number
see: http://root.cern.ch/root/roottalk/RoottalkRules.html

Rene Brun

On Sun, 27 Jun 
2004, Yang 
Ruizhe 
wrote:

> Hi, ROOTers!
> 
> I am confused by this situation:
> 
> Now, I have written two classes, say, MyClass1 and MyClass2. They are both compiled to MyClass1.so and MyClass2.so
> 
> And in MyClass1, a member function is MyClass1::TEST(MyClass2 T), and the compiler reports nothing wrong.
> 
> But, when I load these two classes using gSystemLoad("MyClass1") and gSystemLoad("MyClass2"), then define MyClass1 T1 and MyClass2 T2, call the member function by T1.TEST(T2), the ROOT just display nothing and quit to the bash command line.
> 
> Is there anything I miss when using a user-define class in another user-define class?
> 
> Thank you very much.
> 
> Best Regards,
> Yang Ruizhe
> 
> 2004.6.27.



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:08 MET