[ROOT] Two classes created by myself cannot work together

From: Yang Ruizhe (jet@hep.pku.edu.cn)
Date: Sun Jun 27 2004 - 07:33:56 MEST


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