Link issue with VS 2005
-
I have a project that was a MFC ccmdtarget app in vs 6 we are moving it to vs 2005 but I get link errors. utoEngine.obj : error LNK2019: unresolved external symbol "public: static struct CRuntimeClass const CCmdTarget::classCCmdTarget" (?classCCmdTarget@CCmdTarget@@2UCRuntimeClass@@B) referenced in function "protected: static struct CRuntimeClass * __stdcall AutoEngine::_GetBaseClass(void)" (?_GetBaseClass@AutoEngine@@KGPAUCRuntimeClass@@XZ) AutoEngine.obj : error LNK2019: unresolved external symbol "public: static struct CRuntimeClass * __stdcall AutoEngine::GetThisClass(void)" (?GetThisClass@AutoEngine@@SGPAUCRuntimeClass@@XZ) referenced in function "void __cdecl `dynamic initializer for 'public: static class COleObjectFactory AutoEngine::factory''(void)" (??__E?factory@AutoEngine@@2VCOleObjectFactory@@A@@YAXXZ) I know this has somthing to do with the way I am linking to MFC, but I have tried to ensure that I am only linking to the mfc 8.0 library only.
a programmer traped in a thugs body
-
I have a project that was a MFC ccmdtarget app in vs 6 we are moving it to vs 2005 but I get link errors. utoEngine.obj : error LNK2019: unresolved external symbol "public: static struct CRuntimeClass const CCmdTarget::classCCmdTarget" (?classCCmdTarget@CCmdTarget@@2UCRuntimeClass@@B) referenced in function "protected: static struct CRuntimeClass * __stdcall AutoEngine::_GetBaseClass(void)" (?_GetBaseClass@AutoEngine@@KGPAUCRuntimeClass@@XZ) AutoEngine.obj : error LNK2019: unresolved external symbol "public: static struct CRuntimeClass * __stdcall AutoEngine::GetThisClass(void)" (?GetThisClass@AutoEngine@@SGPAUCRuntimeClass@@XZ) referenced in function "void __cdecl `dynamic initializer for 'public: static class COleObjectFactory AutoEngine::factory''(void)" (??__E?factory@AutoEngine@@2VCOleObjectFactory@@A@@YAXXZ) I know this has somthing to do with the way I am linking to MFC, but I have tried to ensure that I am only linking to the mfc 8.0 library only.
a programmer traped in a thugs body