delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/01/27/18:18:10

Date: Fri, 27 Jan 1995 11:18:46 -0500
To: djgpp AT sun DOT soe DOT clarkson DOT edu
From: pyc AT postoffice DOT cheme DOT cornell DOT edu (Po-Yi CHEN)
Subject: gcc 2.6.3 link error..(? libgpp.a bug?)

Hi !

I installed gcc 2.6.3 and libgpp 2.5.2 on pc-486. It passed throught test
programs with the package. However, I found linker error at the following
program.

file : tst1.cc

#include <iostream.h>
#include <ACG.h>
#include <negexp.h>
#include <Random.h>

main()
{
  ACG gen(10,20) ;
  NegativeExpntl rnd(1.0,&gen) ;
  double next = rnd() ;
  for (int i=0; i<20; i++)  {
       cout << next << endl ;
       next = rnd() ;
   }
}

C:\DJGPP>gcc tst1.cc -lgpp -liostr -lm
RNG.cc(.text+0x376): undefined reference to `__pure_virtual'
RNG.cc(.text+0x37e): undefined reference to `__pure_virtual'
Random.cc(.text+0x5e): undefined reference to `__pure_virtual'

Can anyone help me out ?
Thanks , pyc



- Raw text -


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