Re: parent classes

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Apr 30 1998 - 17:40:39 MEST


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



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