I try to use visual studio 10 compiler rather than Gcc
every thing work fine for me but when I tried to make debug version instead of release version it give me this problems:
build log:
-------------- Build: Debug in C++FARAWAY (compiler: Microsoft Visual C++ 2010)---------------
cl.exe /nologo /W3 /TP /EHa /Za /Zi /D_DEBUG /TP /EHa /Os /Za /I"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include" /c Untitled1.cpp /Foobj\Debug\Untitled1.obj
Untitled1.cpp
link.exe /nologo /LIBPATH:"C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\x64" /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64" /out:bin\Debug\C++FARAWAY.exe obj\Debug\Untitled1.obj /DEBUG /VERBOSE:LIB
Searching libraries
Searching C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64\libcpmtd.lib:
Searching C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64\LIBCMT.lib:
Searching C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\x64\kernel32.lib:
Searching C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64\libcpmtd.lib:
Searching C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64\LIBCMT.lib:
Finished searching libraries
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
libcpmtd.lib(xdebug.obj) : error LNK2001: unresolved external symbol _free_dbg
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol _free_dbg
Untitled1.obj : error LNK2019: unresolved external symbol _free_dbg referenced in function "private: void __cdecl std::_Yarn<char>::_Tidy(void)" (?_Tidy@?$_Yarn@D@std@@AEAAXXZ)
libcpmtd.lib(cin.obj) : error LNK2001: unresolved external symbol _free_dbg
libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol _free_dbg
libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external symbol _free_dbg
libcpmtd.lib(cin.obj) : error LNK2019: unresolved external symbol _CrtDbgReportW referenced in function "public: char const & __cdecl std::_String_const_iterator<char,struct std::char_traits<char>,class std::allocator<char> >::operator*(void)const " (??D?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAAEBDXZ)
libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol _CrtDbgReportW
libcpmtd.lib(stdthrow.obj) : error LNK2001: unresolved external symbol _CrtDbgReportW
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol _CrtDbgReportW
libcpmtd.lib(locale0.obj) : error LNK2019: unresolved external symbol _malloc_dbg referenced in function "public: class std::_Yarn<char> & __cdecl std::_Yarn<char>::operator=(char const *)" (??4?$_Yarn@D@std@@QEAAAEAV01@PEBD@Z)
libcpmtd.lib(xdebug.obj) : error LNK2001: unresolved external symbol _malloc_dbg
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol _malloc_dbg
libcpmtd.lib(_tolower.obj) : error LNK2019: unresolved external symbol _calloc_dbg referenced in function _Getctype
bin\Debug\C++FARAWAY.exe : fatal error LNK1120: 4 unresolved externals
Process terminated with status 1120 (0 minute(s), 1 second(s))
15 error(s), 1 warning(s) (0 minute(s), 1 second(s))
build messages:
||=== Build: Debug in C++FARAWAY (compiler: Microsoft Visual C++ 2010) ===|
LINK||warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library|
libcpmtd.lib(xdebug.obj)||error LNK2001: unresolved external symbol _free_dbg|
libcpmtd.lib(xmbtowc.obj)||error LNK2001: unresolved external symbol _free_dbg|
Untitled1.obj||error LNK2019: unresolved external symbol _free_dbg referenced in function "private: void __cdecl std::_Yarn<char>::_Tidy(void)" (?_Tidy@?$_Yarn@D@std@@AEAAXXZ)|
libcpmtd.lib(cin.obj)||error LNK2001: unresolved external symbol _free_dbg|
libcpmtd.lib(cout.obj)||error LNK2001: unresolved external symbol _free_dbg|
libcpmtd.lib(locale0.obj)||error LNK2001: unresolved external symbol _free_dbg|
libcpmtd.lib(cin.obj)||error LNK2019: unresolved external symbol _CrtDbgReportW referenced in function "public: char const & __cdecl std::_String_const_iterator<char,struct std::char_traits<char>,class std::allocator<char> >::operator*(void)const " (??D?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAAEBDXZ)|
libcpmtd.lib(cout.obj)||error LNK2001: unresolved external symbol _CrtDbgReportW|
libcpmtd.lib(stdthrow.obj)||error LNK2001: unresolved external symbol _CrtDbgReportW|
libcpmtd.lib(xmbtowc.obj)||error LNK2001: unresolved external symbol _CrtDbgReportW|
libcpmtd.lib(locale0.obj)||error LNK2019: unresolved external symbol _malloc_dbg referenced in function "public: class std::_Yarn<char> & __cdecl std::_Yarn<char>::operator=(char const *)" (??4?$_Yarn@D@std@@QEAAAEAV01@PEBD@Z)|
libcpmtd.lib(xdebug.obj)||error LNK2001: unresolved external symbol _malloc_dbg|
libcpmtd.lib(xmbtowc.obj)||error LNK2001: unresolved external symbol _malloc_dbg|
libcpmtd.lib(_tolower.obj)||error LNK2019: unresolved external symbol _calloc_dbg referenced in function _Getctype|
bin\Debug\C++FARAWAY.exe||fatal error LNK1120: 4 unresolved externals|
||=== Build failed: 15 error(s), 1 warning(s) (0 minute(s), 1 second(s)) ===|
I have tried every possible thing I know but nothing happen
i try to use /nodefaultlib:libcmt.lib
but nothing happend
please help me