Vtable utterings…
Published by packi on
Updated by packi on

Maybe you shouldn’t code with a hangover, but I think its not just me who’s stumped while looking at the following linker message:

linking xyz (g++)
myfile.o: In function `MyFile':
/home/patrick/projects/xyz/trunk/src/myfile.cpp:608: undefined reference to `vtable for xyz::MyFile'

This happens if you declare an overriden (virtual) function but haven’t implemented it. Thank you ld for your clarity…