LNK2001 in MFC Extension DLL's
-
Hello! I got a strange linker error (EFDBListCtrl.obj : error LNK2001: Unresolved external Symbol "public: static struct CRuntimeClass const CEFListCtrl::classCEFListCtrl" (?classCEFListCtrl@CEFListCtrl@@2UCRuntimeClass@@B) and EFDBListCtrl.obj : error LNK2001: Unresolved external Symbol "protected: static struct AFX_MSGMAP const CEFListCtrl::messageMap" (?messageMap@CEFListCtrl@@1UAFX_MSGMAP@@B)) The error only occur on following circumstances: CEFListCtrl exists in MFC_Extension-DLL_A CEFDBListCtrl exists in MFC_Extension-DLL_B (CEFDBListCtrl inherits from CEFListCtrl) When putting CEFDBListCtrl out from DDL_B into the EXE-Module everthing works fine. I think the project settings are OK (linking with lib's..) there are no unresolved externals for other functions of CEFListCtrl.
-
Hello! I got a strange linker error (EFDBListCtrl.obj : error LNK2001: Unresolved external Symbol "public: static struct CRuntimeClass const CEFListCtrl::classCEFListCtrl" (?classCEFListCtrl@CEFListCtrl@@2UCRuntimeClass@@B) and EFDBListCtrl.obj : error LNK2001: Unresolved external Symbol "protected: static struct AFX_MSGMAP const CEFListCtrl::messageMap" (?messageMap@CEFListCtrl@@1UAFX_MSGMAP@@B)) The error only occur on following circumstances: CEFListCtrl exists in MFC_Extension-DLL_A CEFDBListCtrl exists in MFC_Extension-DLL_B (CEFDBListCtrl inherits from CEFListCtrl) When putting CEFDBListCtrl out from DDL_B into the EXE-Module everthing works fine. I think the project settings are OK (linking with lib's..) there are no unresolved externals for other functions of CEFListCtrl.
Well, First check if you are exporting and importing OK. http://support.microsoft.com/support/kb/articles/Q128/1/99.asp Concerning a possible MFC bug take a look at http://support.microsoft.com/support/kb/articles/Q152/2/54.asp