briceandre wrote: which compiler ?
MSVC. I checked and changed the project settings as you said. But I got the following errors while running my project in
Debug mode:
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __malloc_dbg referenced in function "void * __cdecl operator new(unsigned int,struct std::_DebugHeapTag_t const &,char *,int)" (??2@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z)
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol __malloc_dbg
libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __free_dbg referenced in function "void __cdecl operator delete(void *,struct std::_DebugHeapTag_t const &,char *,int)" (??3@YAXPAXABU_DebugHeapTag_t@std@@PADH@Z)
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol __free_dbg
libcpmtd.lib(stdthrow.obj) : error LNK2019: unresolved external symbol __CrtDbgReportW referenced in function "void __cdecl std::_Debug_message(wchar_t const *,wchar_t const *,unsigned int)" (?_Debug_message@std@@YAXPB_W0I@Z)
libcpmtd.lib(cerr.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW
libcpmtd.lib(_tolower.obj) : error LNK2019: unresolved external symbol __calloc_dbg referenced in function __Getctype
D:\WxTest\Debug\WxTest.exe : fatal error LNK1120: 4 unresolved externals
But while running in release mode, I got plenty of errors(more than four thousand). I give some of those here:
libcpmtd.lib(cerr.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
wxbase29u.lib(base64.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
wxbase29u.lib(textfile.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
wxbase29u.lib(process.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
wxbase29u.lib(fileconf.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
wxbase29u.lib(mimetype.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
wxbase29u.lib(ipcbase.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
wxbase29u.lib(longlong.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
wxbase29u.lib(mimecmn.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
wxbase29u.lib(fileback.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
wxbase29u.lib(dde.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
What else to do?