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 #include #include #include 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