I've been stuck on this problem for a while now. I'm building with Visual Studio 2019. I've built fine before, but even since i tried adding 4 different files to the build, 2 headers and 2 cpp files, i get 8 LNK2001 errors followed by LNK1180 fatal error. I already added the files to CMakeLists.txt but i am still having issues. Any help on this is appreciated. Below is the log from Visual Studio
Code:
3>LocalPlayersWidget.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __cdecl LocalPlayersWidget::metaObject(void)const " (?metaObject@LocalPlayersWidget@@UEBAPEBUQMetaObject@@XZ)
3>LocalPlayersWidget.obj : error LNK2001: unresolved external symbol "public: virtual void * __cdecl LocalPlayersWidget::qt_metacast(char const *)" (?qt_metacast@LocalPlayersWidget@@UEAAPEAXPEBD@Z)
3>LocalPlayersWidget.obj : error LNK2001: unresolved external symbol "public: virtual int __cdecl LocalPlayersWidget::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@LocalPlayersWidget@@UEAAHW4Call@QMetaObject@@HPEAPEAX@Z)
3>LocalPlayersWidget.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const LocalPlayersWidget::staticMetaObject" (?staticMetaObject@LocalPlayersWidget@@2UQMetaObject@@B)
3>LocalPlayersWindow.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __cdecl LocalPlayersWindow::metaObject(void)const " (?metaObject@LocalPlayersWindow@@UEBAPEBUQMetaObject@@XZ)
3>LocalPlayersWindow.obj : error LNK2001: unresolved external symbol "public: virtual void * __cdecl LocalPlayersWindow::qt_metacast(char const *)" (?qt_metacast@LocalPlayersWindow@@UEAAPEAXPEBD@Z)
3>LocalPlayersWindow.obj : error LNK2001: unresolved external symbol "public: virtual int __cdecl LocalPlayersWindow::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@LocalPlayersWindow@@UEAAHW4Call@QMetaObject@@HPEAPEAX@Z)
3>LocalPlayersWindow.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const LocalPlayersWindow::staticMetaObject" (?staticMetaObject@LocalPlayersWindow@@2UQMetaObject@@B)
3>C:\Users\15165\Rio Modding Project\Project Rio\PR official\Build\x64\Release\Project Rio\bin\Project Rio.exe : fatal error LNK1120: 8 unresolved externals
3>Done building project "DolphinQt.vcxproj" -- FAILED.
========== Build: 1 succeeded, 1 failed, 32 up-to-date, 1 skipped ==========