| Цитата(Annihilator @ 15.10.2008, 10:41) | В свойствах проекта С++->code generation->Runtime Library поставь флаг /MT |
если в Solution Configurations стоит Debug то выдает ошибки
| Код | ------ Build started: Project: test3, Configuration: Debug Win32 ------ Linking... LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library test.obj : error LNK2019: unresolved external symbol __CrtDbgReportW referenced in function "protected: virtual char const * __thiscall std::ctype<char>::_Do_widen_s(char const *,char const *,char *,unsigned int)const " (?_Do_widen_s@?$ctype@D@std@@MBEPBDPBD0PADI@Z) libcpmtd.lib(cin.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW libcpmtd.lib(stdthrow.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW 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(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(_tolower.obj) : error LNK2019: unresolved external symbol __calloc_dbg referenced in function __Getctype C:\Documents and Settings\Александр\Мои документы\Visual Studio 2008\Projects\test3\Debug\test3.exe : fatal error LNK1120: 4 unresolved externals Build log was saved at "file://c:\Documents and Settings\Александр\Мои документы\Visual Studio 2008\Projects\test3\test3\Debug\BuildLog.htm" test3 - 8 error(s), 1 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
|
если Release, то все равно не запускается на другом компе |