EGCS 2.95.2 C++ bug: undefined reference for virtual table

-Kaatunut kaatunut@saunalahti.fi
Fri Jan 21 14:08:00 GMT 2000


c4.o: In function `Player::Player(void)':
/home/fdeity/code/c4-0.1/src/c4.cc(.Simulater::gnu.linkonce.t.(void)+0x18):
undefined reference to `Simulater virtual table'

class Simulater : public Player {

That tells about everything relevant. Player has virtual function = 0
functions, but Simulater defines them all in separate .cc file. I didn't
get this error with EGSC 2.91.66, but same code produced strange
undefined references to templates instead, possibly aborting before this
even got checked.

YES, I have double-checked I defined all the functions. In correct form
for parameters and return value.

 -Kaatunut



More information about the Gcc-bugs mailing list