Re: MFC Shared DLL

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Tweeeek (Tweeeek_at_nospam.com)
Date: 07/21/04


Date: Wed, 21 Jul 2004 16:21:16 +0100

Hi
I can get the application to compile by adding the following to the Sources

CDEFINES= /D_WIN32_WCE=300 /D_AFXDLL

The problem now is that I get 625 errors during the link phase,

c:\wince300\platform\intel_~1\apps\regedit\reditdoc.obj() : error
LNK2001: unresolved external symbol __afxForceSTDAFX
c:\wince300\platform\intel_~1\apps\regedit\reditview.obj() : error
LNK2001: unresolved external symbol __afxForceSTDAFX
c:\wince300\platform\intel_~1\apps\regedit\rnode.obj() : error LNK2001:
unresolved external symbol __afxForceSTDAFX
c:\wince300\platform\intel_~1\apps\regedit\dlgdata.obj() : error
LNK2001: unresolved external symbol __afxForceSTDAFX
c:\wince300\platform\intel_~1\apps\regedit\dlgrenamekey.obj() : error
LNK2001: unresolved external symbol __afxForceSTDAFX
c:\wince300\platform\intel_~1\apps\regedit\mainfrm.obj() : error
LNK2001: unresolved external symbol __afxForceSTDAFX
c:\wince300\platform\intel_~1\apps\regedit\redit.obj() : error LNK2001:
unresolved external symbol __afxForceSTDAFX
c:\wince300\platform\intel_~1\apps\regedit\stdafx.obj() : error LNK2001:
unresolved external symbol __afxForceSTDAFX
c:\wince300\platform\intel_~1\apps\regedit\detailview.obj() : error
LNK2001: unresolved external symbol __afxForceSTDAFX
c:\wince300\platform\intel_~1\apps\regedit\dlgaddvalue.obj() : error
LNK2001: unresolved external symbol __afxForceSTDAFX
c:\wince300\platform\intel_~1\apps\regedit\dlgcreatekey.obj() : error
LNK2001: unresolved external symbol __afxForceSTDAFX
c:\wince300\platform\intel_~1\apps\regedit\detailview.obj() : error
LNK2001: unresolved external symbol "__declspec(dllimport) public:
static struct CRuntimeClass const CListView::classCListView"
(__imp_?classCListView@CListView@@2UCRuntimeClass@@B
)
c:\wince300\platform\intel_~1\apps\regedit\detailview.obj() : error
LNK2001: unresolved external symbol "protected: virtual void __cdecl
CCtrlView::OnDraw(class CDC *)" (?OnDraw@CCtrlView@@MAAXPAVCDC@@@Z)
c:\wince300\platform\intel_~1\apps\regedit\reditview.obj() : error
LNK2001: unresolved external symbol "protected: virtual void __cdecl
CCtrlView::OnDraw(class CDC *)" (?OnDraw@CCtrlView@@MAAXPAVCDC@@@Z)
c:\wince300\platform\intel_~1\apps\regedit\detailview.obj() : error
LNK2001: unresolved external symbol "public: virtual void __cdecl
CView::OnInitialUpdate(void)" (?OnInitialUpdate@CView@@UAAXXZ)
c:\wince300\platform\intel_~1\apps\regedit\reditview.obj() : error
LNK2001: unresolved external symbol "public: virtual void __cdecl
CView::OnInitialUpdate(void)" (?OnInitialUpdate@CView@@UAAXXZ)
c:\wince300\platform\intel_~1\apps\regedit\detailview.obj() : error
LNK2001: unresolved external symbol "protected: virtual struct
AFX_MSGMAP const * __cdecl CListView::GetMessageMap(void)const "
(?GetMessageMap@CListView@@MBAPBUAFX_MSGMAP@@XZ)
c:\wince300\platform\intel_~1\apps\regedit\detailview.obj() : error
LNK2001: unresolved external symbol "public: virtual struct
CRuntimeClass * __cdecl CListView::GetRuntimeClass(void)const "
(?GetRuntimeClass@CListView@@UBAPAUCRuntimeClass@@XZ)
c:\wince300\platform\intel_~1\apps\regedit\detailview.obj() : error
LNK2001: unresolved external symbol "public: virtual void __cdecl
CMenu::MeasureItem(struct tagMEASUREITEMSTRUCT *)"
(?MeasureItem@CMenu@@UAAXPAUtagMEASUREITEMSTRUCT@@@Z)
c:\wince300\platform\intel_~1\apps\regedit\reditview.obj() : error
LNK2001: unresolved external symbol "public: virtual void __cdecl
CMenu::MeasureItem(struct tagMEASUREITEMSTRUCT *)"
(?MeasureItem@CMenu@@UAAXPAUtagMEASUREITEMSTRUCT@@@Z)
c:\wince300\platform\intel_~1\apps\regedit\detailview.obj() : error
LNK2001: unresolved external symbol "public: virtual void __cdecl
CMenu::DrawItem(struct tagDRAWITEMSTRUCT *)"
(?DrawItem@CMenu@@UAAXPAUtagDRAWITEMSTRUCT@@@Z)
c:\wince300\platform\intel_~1\apps\regedit\reditview.obj() : error
LNK2001: unresolved external symbol "public: virtual void __cdecl
CMenu::DrawItem(struct tagDRAWITEMSTRUCT *)"
(?DrawItem@CMenu@@UAAXPAUtagDRAWITEMSTRUCT@@@Z)
c:\wince300\platform\intel_~1\apps\regedit\detailview.obj() : error
LNK2001: unresolved external symbol "public: virtual struct
CRuntimeClass * __cdecl CMenu::GetRuntimeClass(void)const "
(?GetRuntimeClass@CMenu@@UBAPAUCRuntimeClass@@XZ)
c:\wince300\platform\intel_~1\apps\regedit\reditview.obj() : error
LNK2001: unresolved external symbol "public: virtual struct
CRuntimeClass * __cdecl CMenu::GetRuntimeClass(void)const "
(?GetRuntimeClass@CMenu@@UBAPAUCRuntimeClass@@XZ)
c:\wince300\platform\intel_~1\apps\regedit\detailview.obj() : error
LNK2001: unresolved external symbol "public: virtual void __cdecl
CListView::DrawItem(struct tagDRAWITEMSTRUCT *)"
(?DrawItem@CListView@@UAAXPAUtagDRAWITEMSTRUCT@@@Z)
c:\wince300\platform\intel_~1\apps\regedit\detailview.obj() : error
LNK2001: unresolved external symbol "protected: virtual void __cdecl
CView::OnEndPrinting(class CDC *,struct CPrintInfo *)"
(?OnEndPrinting@CView@@MAAXPAVCDC@@PAUCPrintInfo@@@Z)
c:\wince300\platform\intel_~1\apps\regedit\reditview.obj() : error
LNK2001: unresolved external symbol "protected: virtual void __cdecl
CView::OnEndPrinting(class CDC *,struct CPrintInfo *)"
(?OnEndPrinting@CView@@MAAXPAVCDC@@PAUCPrintInfo@@@Z)
c:\wince300\platform\intel_~1\apps\regedit\detailview.obj() : error
LNK2001: unresolved external symbol "protected: virtual void __cdecl
CView::OnPrint(class CDC *,struct CPrintInfo *)"
(?OnPrint@CView@@MAAXPAVCDC@@PAUCPrintInfo@@@Z)
c:\wince300\platform\intel_~1\apps\regedit\reditview.obj() : error
LNK2001: unresolved external symbol "protected: virtual void __cdecl
CView::OnPrint(class CDC *,struct CPrintInfo *)"
(?OnPrint@CView@@MAAXPAVCDC@@PAUCPrintInfo@@@Z)

Any help would be appreciated

Regards



Relevant Pages

  • build voipdemo error
    ... rtcevent.obj: error LNK2019: unresolved external symbol ... _IID_IConnectionPointContainer referenced in function "void __cdecl ... HandleSessionStateChangeEvent(struct IDispatch *)" ... referenced in function "int __cdecl InitializeRTC(int ...
    (microsoft.public.windowsce.platbuilder)
  • build voipdemo error
    ... rtcevent.obj: error LNK2019: unresolved external symbol ... _IID_IConnectionPointContainer referenced in function "void __cdecl ... HandleSessionStateChangeEvent(struct IDispatch *)" ... referenced in function "int __cdecl InitializeRTC(int ...
    (microsoft.public.windowsce.embedded.vc)
  • build voipdemo error
    ... rtcevent.obj: error LNK2019: unresolved external symbol ... _IID_IConnectionPointContainer referenced in function "void __cdecl ... HandleSessionStateChangeEvent(struct IDispatch *)" ... referenced in function "int __cdecl InitializeRTC(int ...
    (microsoft.public.windowsce.app.development)
  • Linking problem when porting C++ to .Net
    ... ModalHistogramIterator.obj: error LNK2019: unresolved external symbol "void ... __cdecl operator delete" referenced in function ...
    (microsoft.public.dotnet.languages.vc)
  • Link error LNK2001
    ... virtual void __thiscall GroupUser::SetExpiration(class ... EnhanceFiles.obj: error LNK2001: unresolved external symbol "public: ... virtual bool __thiscall GroupUser::IsAdminGroup" ...
    (microsoft.public.vc.mfc)