Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - unresolved external symbol __CrtDbgReportW
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

unresolved external symbol __CrtDbgReportW

 Post Reply Post Reply
Author
Message
madmanahong View Drop Down
Newbie
Newbie
Avatar

Joined: 31 October 2007
Location: China
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote madmanahong Quote  Post ReplyReply Direct Link To This Post Topic: unresolved external symbol __CrtDbgReportW
    Posted: 05 November 2012 at 12:26am
DeadDeadDead

I build my project in Statically Link

1. Use MFC in a Static Library
2. Multi-threaded Debug (/MTd)
3. 
#define _XTP_STATICLINK
#include <XTToolkitPro.h>

4. Add the following code in x.rc2
#if !defined (_AFXDLL) || defined(_XTP_STATICLINK)
#include <XTToolkitPro.rc>
#endif


It's right on release(WIN32;NDEBUG;_WINDOWS),
but error on debug(WIN32;_WINDOWS;_DEBUG).

the debug output:
-------------------------------------------------------------

Generating Code...
Compiling resources...
Linking...
Searching libraries
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\lib\uafxcwd.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib\libcmtd.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib\DelayImp.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\kernel32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\user32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\gdi32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\msimg32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\comdlg32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\winspool.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\advapi32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\shell32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\comctl32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\shlwapi.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\uuid.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\oledlg.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\ole32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\oleaut32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\urlmon.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib\comsupp.lib:
    Searching D:\Codejock Software\MFC\Xtreme ToolkitPro v15.0.1\Lib\vc71\ToolkitPro1501vc71SUD.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib\OLDNAMES.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\lib\atlsd.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\wininet.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\ws2_32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\mswsock.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\oleacc.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\imagehlp.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\GdiPlus.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\OpenGL32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\GLU32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib\comsuppwd.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\winmm.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\lib\uafxcwd.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib\libcmtd.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib\DelayImp.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\kernel32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\user32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\gdi32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\msimg32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\comdlg32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\winspool.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\advapi32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\shell32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\comctl32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\shlwapi.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\uuid.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\oledlg.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\ole32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\oleaut32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\urlmon.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib\comsupp.lib:
    Searching D:\Codejock Software\MFC\Xtreme ToolkitPro v15.0.1\Lib\vc71\ToolkitPro1501vc71SUD.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib\OLDNAMES.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\lib\atlsd.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\wininet.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\ws2_32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\mswsock.lib:
    Searching C:\Progra
m Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\oleacc.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\imagehlp.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\GdiPlus.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\OpenGL32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\GLU32.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib\comsuppwd.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\winmm.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\lib\uafxcwd.lib:
    Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib\libcmtd.lib:
Finished searching libraries
EclipseHost.obj : error LNK2019: unresolved external symbol __CrtDbgReportW referenced in function "public: __thiscall ATL::CSimpleStringT<wchar_t,0>::CSimpleStringT<wchar_t,0>(struct ATL::IAtlStringMgr *)" (??0?$CSimpleStringT@_W$0A@@ATL@@QAE@PAUIAtlStringMgr@1@@Z)
EclipseHostBookMarks.obj : error LNK2001: unresolved external symbol __CrtDbgReportW
EclipseHostTasks.obj : error LNK2001: unresolved external symbol __CrtDbgReportW
..\bin/GUI_EclipseD.exe : fatal error LNK1120: 1 unresolved externals

Build log was saved at "file://d:\Work\temp\debug\BuildLog.htm"
AntiProtectUI - 4 error(s), 0 warning(s)



How to solve it?



and my another question is how to reduce the EXE size?



thanks




Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.109 seconds.