delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/09/18:23:29

From: "Christopher Nelson" <paradox AT gye DOT satnet DOT net>
To: <djgpp AT delorie DOT com>
Subject: Re: virtual table
Date: Fri, 9 Jul 1999 13:29:35 -0600
Message-ID: <01beca41$609c65e0$LocalHost@thendren>
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.71.1712.3
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Reply-To: djgpp AT delorie DOT com


>I am having a problem with a class and a virtual function.  I'll call my
class X.  I derived class Y from X, and then Z from Y.  I have a virtual
function in X, and then redefined it in Y.  In Z, I actually redefine the
virtual class and use it.  I made a driver program to test class Z, and made
a project with it.  Both files compiled into their respective .o files, but
when DJGPP went to compile into the .exe, it said that it couldn't find the
virtual table for X, and Y.  Any ideas what is going on?  Thanks.



this often happens if you don't specify a constructor AND destructor WITH
some sort of body (even an empty body.)  i have this problem occasionally,
and it's always because i didn't put in a destructor.

    -={C}=-

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019