Mail Archives: djgpp/1997/04/07/16:02:17
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 -