|
|
1>------ Build started: Project: kvadr1, Configuration: Debug Win32 ------ 1>Compiling... 1>stdafx.cpp 1>Compiling... 1>kvadr1.cpp 1>Linking... 1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library 1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW 1>kvadr1.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) 1>libcpmtd.lib(cin.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW 1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW 1>libcpmtd.lib(stdthrow.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW 1>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) 1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol __malloc_dbg 1>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) 1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol __free_dbg 1>libcpmtd.lib(_tolower.obj) : error LNK2019: unresolved external symbol __calloc_dbg referenced in function __Getctype 1>C:\Documents and Settings\ivars\My Documents\Visual Studio 2008\Projects\kvadr1\Debug\kvadr1.exe : fatal error LNK1120: 4 unresolved externals 1>Build log was saved at "file://c:\Documents and Settings\ivars\My Documents\Visual Studio 2008\Projects\kvadr1\Debug\BuildLog.htm" 1>kvadr1 - 11 error(s), 1 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
Rycul (29) Feb 14, 2010 at 2:08pm I had the same problem a while ago with a program I wrote. What I did was change the compiler settings. Go to Build -> Configuration Manager -> Then change the Active Solution Configuration from Debug to Release from the dropdown-menu. It worked for me if I recall correctly. But I'm sure there are more things that can give you the same error so I don't guarantee you that this will work for you as well. EDIT: Phew, I'm still a bit sleepy I guess. You can also just change Debug to Release from the dropdown-menu on the standard toolbar. (Atleast if you have that enabled) It's right next to the green 'Start debugging' arrow. If you dont have this enabled you can enable it by going to View -> Toolbars -> Standard. Last edited on Feb 14, 2010 at 2:12pm |