Linking...mainform.obj : error LNK2019: unresolved external symbol "public: static struct QMetaObject const BaseForm::staticMetaObject" (?staticMetaObject@BaseForm@@2UQMetaObject@@B) referenced in function "public: static class QString __cdecl BaseForm::tr(char const *,char const *)" (?tr@BaseForm@@SA?AVQString@@PBD0@Z)mainform.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall BaseForm::metaObject(void)const " (?metaObject@BaseForm@@UBEPBUQMetaObject@@XZ)mainform.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall BaseForm::qt_metacast(char const *)" (?qt_metacast@BaseForm@@UAEPAXPBD@Z)mainform.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall BaseForm::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@BaseForm@@UAEHW4Call@QMetaObject@@HPAPAX@Z).\release/METOD.exe : fatal error LNK1120: 4 unresolved externals
moc BaseForm.h -o moc_BaseForm.cpp