This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]