Mail Archives: djgpp/1995/04/18/11:43:28
Ralph,
> I'm having a problem using abstract classes with GCC 2.6.3. When I try to
> compile and link the following program exerpt:
>
[Program Deleted]
>
> I get the error message:
>
> pure.cc(.text+0x7a): undefined reference to `__pure_virtual'
>
> I can't seem to find any references to `__pure_virtual' (other than
UNDEFINED)
> in any of the DJGPP object libraries, so I don't know where it's expecting to
> find it. Is this a problem with my particular installation, or are pure
> virtual functions not supported with this release of DJGPP?
>
> Any suggestions, advice, hints or alternatives are appreciatively solicited.
>
> Thanks,
>
> Ralph
When I compiled, linked and ran your excerpt, it ran fine:
106$ gcc pure.C -liostr
107$ go32 a.out
go32 version 1.12.maint3 Copyright (C) 1994 DJ Delorie
Reading an int...
Reading a buffer...
108$
No linker errors. Could you tell me what command line you used?
Steve Salter salters AT am DOT fanshawec DOT on DOT ca
Programmer,
Fanshawe College
London, ON Canada
- Raw text -