Hi rooters,
I want to built a class PNode, and it inherits from class Node and class RParticle, both inheriting from TObject. When I made the library, the following error accured:
$ make
Warning: multiple ambiguous inheritance TObject and PNode. Cint will not get cor
rect base object address
Warning: multiple ambiguous inheritance TObject and PNode. Cint will not get cor
rect base object address
/usr/bin/g++ -O -Wall -fPIC -pthread -I/home/luxg/root/root-4.04.02g/include -c
PTreeDict.cxx
PTreeDict.cxx: In function void *ROOT::new_PNode (void *)': PTreeDict.cxx:130: request for member
operator new’ is ambiguous
/home/luxg/root/root-4.04.02g/include/TObject.h:157: candidates are: static void
*TObject::operator new
(unsigned int, void *)
What are the problems?
Cheers, Xian-Guo Lu