When building my C++ program, I\'m getting the error message
undefined reference to \'vtable...
What is the cause of this probl
In my case I'm using Qt and had defined a QObject subclass in a foo.cpp (not .h) file. The fix was to add #include "foo.moc" at the end of foo.cpp.
QObject
foo.cpp
.h
#include "foo.moc"