error message-> undefined reference to 'xxx::QPaintDevice virtual table'
harry at kdevelop.org
Sat Dec 29 10:36:07 GMT 2001
you probably forgot to include the generated .moc file. Just add a #include
"blah.moc" at the end of your .cpp file and the error should disappear.
The gcc error-message is very misleading, it just tells you that there are
undefined references in your code.
> Dear All,
> I often get following error messages in KDevelop 2.0 (SuSE 7.3):
> --> undefined reference to 'Fudel::QPaintDevice virtual table'
> --> undefined reference to 'Fudel virtual table'
> for the Fudel constructor AND for the Fudel destructor.
> Fudel is a public-derived class of a, with Qt-Designer created class.
> This error can be caused by a Uppercase in the class name (-> FuDel)
> or in a label (-> TextLabel), but sometimes I can't find the cause!
> The error disappears when I remove Q_OBJECT in fudel.cpp but,
> of course, in this case I can't use the implemented SLOTS!!
> How can I completely avoid this error?
> Many thanks!
> Best regards,
> to unsubscribe from this list send an email to
> kdevelop-request at kdevelop.org with the following body: unsubscribe
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
More information about the KDevelop