Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" 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 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT 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