Re: parent classes
Rene Brun (Rene.Brun@cern.ch)
Thu, 30 Apr 1998 17:40:39 +0200
Jose Carlos Gonzalez wrote:
>
> Hi rooters,
>
> I would like to define one class "A", parent of another class
> "B", the child. I'm trying to do it definning "A" as child of
> TObject, because I want to link all together in a single
> executable program. But I get all the time errors of the
> following type:
>
> Unresolved:
> __vtbl_1a Make sure that the first noninlined virtual member
> function of 'a' is
> defined.
> __vtbl_1b Make sure that the first noninlined virtual member
> function of 'b' is
> defined.
>
> I cannot find in the documentation how to handle this problem. Do
> you have any idea?
>
Very likely, you have a function declared in your header file
without the corresponding implementation.
Make sure you provide:
default constructor and destructor.
If you have the ClassDef in A.h, make sure that you have
the corresponding statement ClassImp in teh implementation file.
Rene Brun