Qt : how to debug and get the source of signal and slots linking error’s -


hi when change large code base written in qt , after compilnig im getting linking errors talking wrong in “metaobject” have no idea source of problem , how can more info error :

1>linking... 1>testdialog.obj : error lnk2001: unresolved external symbol "public: virtual struct qmetaobject const * __thiscall testdialog::metaobject(void)const " (?metaobject@testdialog@@ubepbuqmetaobject@@xz) 1>testdialog.obj : error lnk2001: unresolved external symbol "public: virtual void * __thiscall testdialog::qt_metacast(char const *)" (?qt_metacast@testdialog@@uaepaxpbd@z) 1>testdialog.obj : error lnk2001: unresolved external symbol "public: virtual int __thiscall testdialog::qt_metacall(enum qmetaobject::call,int,void * *)" (?qt_metacall@testdialog@@uaehw4call@qmetaobject@@hpapax@z) 1>testdialog.obj : error lnk2001: unresolved external symbol "public: static struct qmetaobject const testdialog::staticmetaobject" (?staticmetaobject@testdialog@@2uqmetaobject@@b) 1>debug\testapp.exe : fatal error lnk1120: 4 unresolved externals 

make sure header testdialog declared in (say testdialog.h) added headers section in .pro file:

headers += testdialog.h 

then re-run qmake.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -