Re: Abstract base class problems with CINT

From: Matthew D. Langston (langston@SLAC.stanford.edu)
Date: Thu Jul 08 1999 - 20:15:43 MEST


Hi Gene,

Gene Van Buren wrote:
> 
> If anyone has suggestions for something I can look at
> or I've left out, please let me know.

I agree with Pasha that it is difficult to diagnose your problem without
seeing your code.  You should feel free, and our encouraged, to attach
code examples which demonstrate what you are having trouble with.  We
will all learn from it.

Having said that, I have a "guess" for you (as I at one time ran into a
problem similar to yours).  One thing you can easily check which can
cause the problem you are having is to make sure that your abstract base
class has a pure virtual destructor which *includes* a definition.

For example, the header file of an abstract base class named Foo should
look like:

  class Foo
  {
     public:
  
        virtual ~Foo() = 0;
        ClassDef(Foo,1)
  }


while the implementation file would look like:

  ClassImp(Foo)
  Foo::~Foo() {}

--
Matthew D. Langston
SLD, Stanford Linear Accelerator Center
langston@SLAC.Stanford.EDU



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:35 MET