Talk:Development/Tutorials/Saving and loading

From KDE TechBase
Revision as of 02:48, 16 March 2008 by Tampakrap (talk | contribs) (Added the necessary line for the vtable fix)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Compiling failed due to 'undefined reference to vtable ...'

When compiling, cmake failed during the linking process. undefined reference to `vtable for MainWindow'

Simply add the following line to the mainwindow.cpp:

  1. include "mainwindow.moc"

Also add this line to your CMakeLists.txt near the top: include (KDE4Defaults)

I don't exactly know why this happens to me, but I suspect the fact that I have not built any special environment for working on KDE4 applications (as described here.

Can someone who understands the process please add the appropriate steps to the main tutorial?