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

Alexandre Beber listsbeber at gmail.com
Mon Nov 17 16:04:21 CET 2008


Yes I did. The .pro file was correct. Everything is working fine now
but, as I said before, to solve it i needed to delete the makefiles
manually. Then, building the project, Qt Creator regenerate the
makefiles and compiled with no problems.

Thanks!

Alexandre

2008/11/17 Stephane List <slist at lilotux.net>:
> 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
>
> _______________________________________________
> 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