
Originally Posted by
fatjuicymole
I don't think it's the "No body knows", but more along the fact of your question is ambiguous.
"there is link error". There's is about 70,000 different answers to that, which would you like to hear? Or you could post something a bit more specific.
OK, then I post the error messages:
Error 1 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall WorldTimeClock::WorldTimeClock(class QWidget *)" (__imp_??0WorldTimeClock@@QAE@PAVQWidget@@@Z) referenced in function "public: void __thiscall Ui_BodyAdjustmentDialogClass::setupUi(class QDialog *)" (?setupUi@Ui_BodyAdjustmentDialogClass@@QAEXPAVQDialog@@@Z) bodyadjustmentdialog.obj
Error 2 error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall WorldTimeClock::metaObject(void)const " (?metaObject@WorldTimeClock@@UBEPBUQMetaObject@@XZ) bodyadjustmentdialog.obj
Error 3 error LNK2001: unresolved external symbol "public: virtual void * __thiscall WorldTimeClock::qt_metacast(char const *)" (?qt_metacast@WorldTimeClock@@UAEPAXPBD@Z) bodyadjustmentdialog.obj
Error
4 error LNK2001
: unresolved external symbol
"public: virtual int __thiscall WorldTimeClock::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@WorldTimeClock@@UAEHW4Call@
QMetaObject@@HPAPAX@Z
) bodyadjustmentdialog.
objError 5 error LNK2001: unresolved external symbol "protected: virtual void __thiscall WorldTimeClock::paintEvent(class QPaintEvent *)" (?paintEvent@WorldTimeClock@@MAEXPAVQPaintEvent@@@Z) bodyadjustmentdialog.obj
Error 6 error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall WorldTimeClock::~WorldTimeClock(void)" (__imp_??1WorldTimeClock@@UAE@XZ) referenced in function "public: virtual void * __thiscall WorldTimeClock::`scalar deleting destructor'(unsigned int)" (??_GWorldTimeClock@@UAEPAXI@Z) bodyadjustmentdialog.obj
Error 7 fatal error LNK1120: 6 unresolved externals ..\..\ptf_main\debug\plugins\BodyAdjustmentModule.dl
Error 1 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall WorldTimeClock::WorldTimeClock(class QWidget *)" (__imp_??0WorldTimeClock@@QAE@PAVQWidget@@@Z) referenced in function "public: void __thiscall Ui_BodyAdjustmentDialogClass::setupUi(class QDialog *)" (?setupUi@Ui_BodyAdjustmentDialogClass@@QAEXPAVQDialog@@@Z) bodyadjustmentdialog.obj
Error 2 error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall WorldTimeClock::metaObject(void)const " (?metaObject@WorldTimeClock@@UBEPBUQMetaObject@@XZ) bodyadjustmentdialog.obj
Error 3 error LNK2001: unresolved external symbol "public: virtual void * __thiscall WorldTimeClock::qt_metacast(char const *)" (?qt_metacast@WorldTimeClock@@UAEPAXPBD@Z) bodyadjustmentdialog.obj
Error 4 error LNK2001: unresolved external symbol "public: virtual int __thiscall WorldTimeClock::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@WorldTimeClock@@UAEHW4Call@QMetaObject@@HPAPAX@Z) bodyadjustmentdialog.obj
Error 5 error LNK2001: unresolved external symbol "protected: virtual void __thiscall WorldTimeClock::paintEvent(class QPaintEvent *)" (?paintEvent@WorldTimeClock@@MAEXPAVQPaintEvent@@@Z) bodyadjustmentdialog.obj
Error 6 error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall WorldTimeClock::~WorldTimeClock(void)" (__imp_??1WorldTimeClock@@UAE@XZ) referenced in function "public: virtual void * __thiscall WorldTimeClock::`scalar deleting destructor'(unsigned int)" (??_GWorldTimeClock@@UAEPAXI@Z) bodyadjustmentdialog.obj
Error 7 fatal error LNK1120: 6 unresolved externals ..\..\ptf_main\debug\plugins\BodyAdjustmentModule.dl
To copy to clipboard, switch view to plain text mode
What I have done, is add one custom widget called "World Timer Clock" in the designer, into my ui file. Then in one of my class bodyadjustementdialog.cpp, I set the .ui for this class.
There comes the link error.
Without the custom widget (world time clock), everything goes fine.
Hope I make myself clear.
Bookmarks