undefined reference to virtual table

Force Ding jackforce at 163.com
Tue Nov 20 06:54:04 UTC 2001


Hi:
 I defined a class to do some. It's not dervied from any class.
class x
{
.....
};
But with the time gone,I need  signal_slot funtion.So I change my class 
define like this
class x:public QObject
{
 Q_OBJECT
  ......
}
[:-(] ,But here have some error.When I build whole project,
Error report said:
   x.o: In function 'x::~x(void)':
    .../x.cpp:18:undefined reference to 'x virtual table'
BTW: I has add qobject.h header file in x.h and x.cpp.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20011120/47bcf47f/attachment.html>


More information about the KDevelop-devel mailing list