Hi,
I'm working on a strategy game. I had large "unit.cpp" and "unit.h" files with many classes in them and everything worked fine, but I felt that I should give each class its own .cpp and .h files. I did so and now it doesn't work.
I get
worker.obj : error LNK2019: unresolved external symbol "public: void __thiscall UNIT::StartBuilding<struct CENTER>(void)" (??$StartBuilding@UCENTER@@@UNIT@@QAEXXZ) referenced in function "public: virtual void __thiscall WORKER::Menu(char)" (?Menu@WORKER@@UAEXD@Z)
There is way too much code to post here, but the structure is something like this:
unit.h