[Qt-creator] undefined reference to vtable for <Class Name>

Stephane List slist at lilotux.net
Mon Nov 17 15:05:12 CET 2008


Hi Alexandre,

Did you declare your class in a .h file ?
Did you declare the .h in the .pro ?
When I get this error, it's because I declare the .cpp as INCLUDE in the
.pro.

Stephane

Alexandre Beber a écrit :
> I don't think so, I have only one version of Qt installed... First I
> created the classes and compiled withou Q_OBJECT macro, then the error
> apeared pointing to the "emit" statements. Maybe the IDE didn't
> updated the makefiles after Q_OBJECT was added to the classes.
> I've started with Qt a few weeks ago, i'm just gessing here heheh
> 
> 2008/11/17 Andreas Duffner <a.duffner at pripares.com>:
>> Alexandre Beber wrote:
>>> undefined reference to
>>> vtable for <Class Name> - pointing to all the constructors/destructors
>>> of my 2 classes.
>> Sounds to me like using two different qmake versions.
>> Is that possible ?
>>
>> Andreas
>> _______________________________________________
>> Qt-creator mailing list
>> Qt-creator at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-creator
>>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator




More information about the Qt-creator-old mailing list