Mail Archives: djgpp/1995/01/27/18:18:10
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 -