Hi.
I did a clean and rebuild. I also make sure I've Q_Object macro in mythread.
Now I got the following errors. Before I added Q_Object, I've only the LNK2019 error.
Also, can you confirm that even for custom signals like the earlier author Rachol replied,
that I still do not need to provide implementation of the valueChanged function?
If so, how do I resolve these metaobject error below?
Please help. I'm losing my hair over this and cant move on.
mythread.obj:-1: error: LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall mythread::metaObject(void)const " (?metaObject@mythread@@UBEPBUQMetaObject@@XZ)
mythread.obj:-1: error: LNK2001: unresolved external symbol "public: virtual void * __thiscall mythread::qt_metacast(char const *)" (?qt_metacast@mythread@@UAEPAXPBD@Z)
mythread.
obj:-1: error
: LNK2001
: unresolved external symbol
"public: virtual int __thiscall mythread::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@mythread@@UAEHW4Call@
QMetaObject@@HPAPAX@Z
)mythread.obj:-1: error: LNK2019: unresolved external symbol "protected: void __thiscall mythread::valueChanged(int)" (?valueChanged@mythread@@IAEXH@Z) referenced in function "public: void __thiscall mythread::init(void)" (?init@mythread@@QAEXXZ)
mythread.obj:-1: error: LNK2001: unresolved external symbol "public: static struct QMetaObject const mythread::staticMetaObject" (?staticMetaObject@mythread@@2UQMetaObject@@B)
mythread.obj:-1: error: LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall mythread::metaObject(void)const " (?metaObject@mythread@@UBEPBUQMetaObject@@XZ)
mythread.obj:-1: error: LNK2001: unresolved external symbol "public: virtual void * __thiscall mythread::qt_metacast(char const *)" (?qt_metacast@mythread@@UAEPAXPBD@Z)
mythread.obj:-1: error: LNK2001: unresolved external symbol "public: virtual int __thiscall mythread::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@mythread@@UAEHW4Call@QMetaObject@@HPAPAX@Z)
mythread.obj:-1: error: LNK2019: unresolved external symbol "protected: void __thiscall mythread::valueChanged(int)" (?valueChanged@mythread@@IAEXH@Z) referenced in function "public: void __thiscall mythread::init(void)" (?init@mythread@@QAEXXZ)
mythread.obj:-1: error: LNK2001: unresolved external symbol "public: static struct QMetaObject const mythread::staticMetaObject" (?staticMetaObject@mythread@@2UQMetaObject@@B)
To copy to clipboard, switch view to plain text mode
Bookmarks