ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/07/16:02:17

Message-Id: <m0wEEpJ-000S1zC@natacha.inti.edu.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT edu DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT natacha DOT inti DOT edu DOT ar>
Organization: INTI
To: tettb AT vitro DOT com, djgpp AT delorie DOT com
Date: Mon, 7 Apr 1997 17:06:37 +0000
MIME-Version: 1.0
Subject: Re: virtual functions

tettb AT vitro DOT com wrote:
> Has anybody used virtual functions in djgpp.  I have a base class
> declared with virtual functions.  I derive a calss from this base class
> in which I overide the virtual functions.  When I try to link however,
> any reference to these methods in the code file for the derived class
> shoot out an error that looks like this:
> 
> code.o:code.cc:undefined reference to  "the virtual function as it
> appears in the base class declaration"
> 
> Can anybody shed some light on this?

To the first question, of course we use virtual functions!, C++ without it is 
only a half. 
Your problem seems to be some error in your declaration, post the minimal piece 
of code that shows your program (cut it to one or two little files and post 
it).

SET
--------------- 0 --------------------------------
Salvador Eduardo Tropea (SET).
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013

- Raw text -


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