Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Static Unicode Linker Errors Collapse All
Subject Author Date
Chris Fudge Apr 1, 2005 - 4:00 AM

Hi,
When I compile my unicode application in Release mode I get the following errors (see below) - am i missing a compile/linker error that i need to set?

Linking...
MainFrm.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CExtMenuControlBar::SetMdiWindowPopupName(wchar_t const *)" (?SetMdiWindowPopupName@CExtMenuControlBar@@UAEXPB_W@Z)
MainFrm.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CExtControlBar::OnGetBarCaptionText(enum CExtControlBar::e_bar_caption_text_t,class ATL::CStringT<wchar_t,class StrTraitMFC<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > &)const " (?OnGetBarCaptionText@CExtControlBar@@UBEXW4e_bar_caption_text_t@1@AAV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@@Z)
XPPanel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CExtControlBar::OnGetBarCaptionText(enum CExtControlBar::e_bar_caption_text_t,class ATL::CStringT<wchar_t,class StrTraitMFC<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > &)const " (?OnGetBarCaptionText@CExtControlBar@@UBEXW4e_bar_caption_text_t@1@AAV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@@Z)
MainFrm.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CExtControlBar::Create(wchar_t const *,class CWnd *,unsigned int,unsigned long)" (?Create@CExtControlBar@@UAEHPB_WPAVCWnd@@IK@Z)
XPPanel.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CExtControlBar::Create(wchar_t const *,class CWnd *,unsigned int,unsigned long)" (?Create@CExtControlBar@@UAEHPB_WPAVCWnd@@IK@Z)
MainFrm.obj : error LNK2019: unresolved external symbol "public: bool __thiscall CExtCmdManager::SerializeState(wchar_t const *,wchar_t const *,wchar_t const *,bool)" (?SerializeState@CExtCmdManager@@QAE_NPB_W00_N@Z) referenced in function "public: virtual int __thiscall CMainFrame::DestroyWindow(void)" (?DestroyWindow@CMainFrame@@UAEHXZ)
MainFrm.obj : error LNK2019: unresolved external symbol "public: static bool __cdecl CExtControlBar::ProfileBarStateSave(class CFrameWnd *,wchar_t const *,wchar_t const *,wchar_t const *,struct tagWINDOWPLACEMENT *)" (?ProfileBarStateSave@CExtControlBar@@SA_NPAVCFrameWnd@@PB_W11PAUtagWINDOWPLACEMENT@@@Z) referenced in function "public: virtual int __thiscall CMainFrame::DestroyWindow(void)" (?DestroyWindow@CMainFrame@@UAEHXZ)
MainFrm.obj : error LNK2019: unresolved external symbol "public: bool __thiscall CExtCmdManager::CmdSetIcon(wchar_t const *,unsigned int,struct HICON__ *,bool)" (?CmdSetIcon@CExtCmdManager@@QAE_NPB_WIPAUHICON__@@_N@Z) referenced in function "protected: void __thiscall CMainFrame::SetPanelIcon(class CPanelParam)" (?SetPanelIcon@CMainFrame@@IAEXVCPanelParam@@@Z)
MainFrm.obj : error LNK2019: unresolved external symbol "public: wchar_t const * __thiscall CExtCmdManager::ProfileNameFromWnd(struct HWND__ *)" (?ProfileNameFromWnd@CExtCmdManager@@QAEPB_WPAUHWND__@@@Z) referenced in function "protected: void __thiscall CMainFrame::SetPanelIcon(class CPanelParam)" (?SetPanelIcon@CMainFrame@@IAEXVCPanelParam@@@Z)
MenuBarEx.obj : error LNK2001: unresolved external symbol "public: wchar_t const * __thiscall CExtCmdManager::ProfileNameFromWnd(struct HWND__ *)" (?ProfileNameFromWnd@CExtCmdManager@@QAEPB_WPAUHWND__@@@Z)
MainFrm.obj : error LNK2019: unresolved external symbol "public: class CExtCmdItem * __thiscall CExtCmdManager::CmdGetPtr(wchar_t const *,unsigned int)" (?CmdGetPtr@CExtCmdManager@@QAEPAVCExtCmdItem@@PB_WI@Z) referenced in function "protected: int __thiscall CMainFrame::OnToolBarButton(unsigned int)" (?OnToolBarButton@CMainFrame@@IAEHI@Z)
MenuBarEx.obj : error LNK2001: unresolved external symbol "public: class CExtCmdItem * __thiscall CExtCmdManager::CmdGetPtr(wchar_t const *,unsigned int)" (?CmdGetPtr@CExtCmdManager@@QAEPAVCExtCmdItem@@PB_WI@Z)
MainFrm.obj : error LNK2019: unresolved external symbol "public: bool __thiscall CExtCmdManager::SetBasicCommands(wchar_t const *,unsigned int *,bool)" (?SetBasicCommands@CExtCmdManager@@QAE_NPB_WPAI_N@Z) referenced in function "protected: int __thiscall CMainFrame::OnCreate(struct tagCREATESTRUCTW *)" (?OnCreate@CMainFrame@@IAEHPAUtagCREATESTRUCTW@@@Z)
MainFrm.obj : error LNK2019: unresolved external symbol "public: class CExtCmdItem * __thiscall CExtCmdManager::CmdAllocPtr(wchar_t const *,unsigned int)" (?CmdAllocPtr@CExtCmdManager@@QAEPAVCExtCmdItem@@PB_WI@Z) referenced in function "protected: int __thiscall CMainFrame::OnCreate(struct tagCREATESTRUCTW *)" (?OnCreate@CMainFrame@@IAEHPAUtagCREATESTRUCTW@@@Z)
MenuBarEx.obj : error LNK2001: unresolved external symbol "public: class CExtCmdItem * __thiscall CExtCmdManager::CmdAllocPtr(wchar_t const *,unsigned int)" (?CmdAllocPtr@CExtCmdManager@@QAEPAVCExtCmdItem@@PB_WI@Z)
MainFrm.obj : error LNK2019: unresolved external symbol "public: bool __thiscall CExtCmdManager::UpdateFromMenu(wchar_t const *,unsigned int,bool,bool)" (?UpdateFromMenu@CExtCmdManager@@QAE_NPB_WI_N1@Z) referenced in function "protected: int __thiscall CMainFrame::OnCreate(struct tagCREATESTRUCTW *)" (?OnCreate@CMainFrame@@IAEHPAUtagCREATESTRUCTW@@@Z)
MainFrm.obj : error LNK2019: unresolved external symbol "public: bool __thiscall CExtCmdManager::ProfileWndAdd(wchar_t const *,struct HWND__ *)" (?ProfileWndAdd@CExtCmdManager@@QAE_NPB_WPAUHWND__@@@Z) referenced in function "protected: int __thiscall CMainFrame::OnCreate(struct tagCREATESTRUCTW *)" (?OnCreate@CMainFrame@@IAEHPAUtagCREATESTRUCTW@@@Z)
MenuBarEx.obj : error LNK2019: unresolved external symbol "public: bool __thiscall CExtCmdManager::CmdRemoveByMask(wchar_t const *,unsigned long,bool)" (?CmdRemoveByMask@CExtCmdManager@@QAE_NPB_WK_N@Z) referenced in function "protected: virtual int __thiscall CMenuBarEx::_UpdateMenuBar(int)" (?_UpdateMenuBar@CMenuBarEx@@MAEHH@Z)
MFCXPGui.obj : error LNK2019: unresolved external symbol "public: bool __thiscall CExtCmdManager::ProfileSetup(wchar_t const *,struct HWND__ *,class CExtCmdProfile *)" (?ProfileSetup@CExtCmdManager@@QAE_NPB_WPAUHWND__@@PAVCExtCmdProfile@@@Z) referenced in function "public: void __thiscall CMFCXPGuiApp::SetupUiAdvancedOptions(void)" (?SetupUiAdvancedOptions@CMFCXPGuiApp@@QAEXXZ)
MFCXPGui.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CExtResDlg::Create(wchar_t const *,class CWnd *)" (?Create@CExtResDlg@@UAEHPB_WPAVCWnd@@@Z)
XPPanel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CExtDynTabControlBar::OnGetBarCaptionText(enum CExtControlBar::e_bar_caption_text_t,class ATL::CStringT<wchar_t,class StrTraitMFC<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > &)const " (?OnGetBarCaptionText@CExtDynTabControlBar@@UBEXW4e_bar_caption_text_t@CExtControlBar@@AAV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@@Z)

Chris Fudge Apr 1, 2005 - 4:02 AM

My current application properties are:

MFC Statically Linked
ATL Statically Linked
Use Unicode Character Set

Preprocessore defs: WIN32;_WINDOWS;NDEBUG;_UNICODE

I Am using Vis Studio 2003.

Thanks.

Technical Support Apr 1, 2005 - 8:03 AM

Your application and the library build should use the same settings for the compiler option Treat w_char as Built-In type when Unicode is used. The article Compatibility with Built-In Unicode Character Type may be useful with regard to this issue.