I have no idea what's wrong with my code. I have include guards in all my header files. Since there is quite some code and I'd like to keep it private the question is rather how I'd go about solving these errors.
Error 1 error LNK2001: unresolved external symbol "public: static class std::_Generic_error_category std::_Error_objects::_Generic_object" (?_Generic_object@?$_Error_objects@H@std@@2V_Generic_error_category@2@A)
Error 9 error LNK2011: precompiled object not linked in; image may not run
Error 10 error LNK2019: unresolved external symbol "void __cdecl myVars::setNumofp(int *)" (?setNumofp@myVars@@YAXPAH@Z) referenced in function _main
So since I didn't find my mistake I merged the two .cpp files, and it now works. However, it annoys me that I could not make it work in two separate .cpp files.