Bug#36018: undefined reference to '... virtual table'

Harald Fernengel harry at kdevelop.org
Mon Jan 7 14:50:05 UTC 2002


Hello,

the error message simply tells you that you forgot to include the moc 
generated file (add a "#include xyz.moc" to the end of the .cpp file).

Normally gcc should complain about unresolved symbols but for some reasons you 
are getting this strange error message. Consult the Qt documentation about 
more information...

Harry

> Although I am not sure, that I have completely understood the
> bugreport # 36018, I suggest to clean/rebuild the whole project.
> Are in the example, mentioned, any QObject- or KDE-classes involved
> that require the (Qt-) moc to be called?    ;-)
>
> Sorry, if I am wrong. But the message about the virtual table is
> always reminding me, that I have recently decided to implement
> Signals and/or Slots in classes, which are originally not inheriting
> from QObject-, or that I have once more forgotten to note the
> QOBject-macro.
>
> Cheerio,
>
> Michael.





More information about the KDevelop-devel mailing list