Mail Archives: djgpp/1995/09/14/06:12:24

From: Jorrit DOT Tyberghein AT uz DOT kuleuven DOT ac DOT be (Jorrit Tyberghein)
Subject: Re: undefined reference to __pure_virtual?
PP-Warning: Parse error in original version of preceding line
Original-To: neuroman AT bada DOT postech DOT ac DOT kr \(\) \(\) (\) (Sungjun Park\(9524M26\))
Date: Thu, 14 Sep 1995 10:43:19 +0200 (MET DST)
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

> I can't solve this problem that is a link error. The error message is
>  undefined reference to __pure_virtual.
> Here is the including library list.
> 	-lgpp -liostr -lpc -lm
> I used a pure virtual class as a super class. I wonder whether DJGPP supports
> pure class or not. 
> Please, help me. 

I had the same problem with DJGPP (release 12.maint4 and gcc 2.6.3) but I
couldn't fix it. I have also got no answers to what could be causing this
problem. There is a work-around. Instead of declaring the method pure
function just declare it with an empty body. This is not as efficient
and clean but it works:

	my_pure_method (parms) = 0;


	my_pure_method (parms) { }


Jorrit DOT Tyberghein AT uz DOT kuleuven DOT ac DOT be, University Hospitals KU Leuven BELGIUM

Basically, there were two sides to the world. There was the entire computer
games software industry engaged in a tremendous effort to stamp out piracy,
and there was Wobbler. Currently, Wobbler was in front.
        -- (Terry Pratchett, Only You Can Save Mankind)

- Raw text -

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