1
我一直在使用Visual Studio 2008 Pro安裝時遇到一些主要問題。它不會編譯任何程序,不管它有多簡單,也不會給我至少15個鏈接器錯誤。我已經嘗試了許多事情,包括手動設置依賴關係文件夾,重新安裝VS2008和Net Framework,安裝Windows SDK,確保鏈接器不包含$ noinherit,但沒有任何工作。MSVSC++ 2008鏈接器損壞,不會編譯任何程序
這裏有一個非常簡單的程序,拒絕編譯錯誤/輸出列表: 錯誤列表PROG1:
Error 15 fatal error LNK1120: 13 unresolved externals F:\Users\GMan\Documents\Visual Studio 2008\Projects\TEst\Release\TEst.exe
Error 6 error LNK2001: unresolved external symbol [email protected] MSVCRT.lib
Error 4 error LNK2001: unresolved external symbol [email protected] MSVCRT.lib
Error 2 error LNK2001: unresolved external symbol [email protected] MSVCRT.lib
Error 7 error LNK2001: unresolved external symbol [email protected] MSVCRT.lib
Error 8 error LNK2001: unresolved external symbol [email protected] MSVCRT.lib
Error 10 error LNK2001: unresolved external symbol [email protected] MSVCRT.lib
Error 9 error LNK2001: unresolved external symbol [email protected] MSVCRT.lib
Error 1 error LNK2001: unresolved external symbol [email protected] MSVCRT.lib
Error 3 error LNK2001: unresolved external symbol [email protected] MSVCRT.lib
Error 11 error LNK2001: unresolved external symbol [email protected] MSVCRT.lib
Error 14 error LNK2001: unresolved external symbol [email protected] MSVCRT.lib
Error 12 error LNK2001: unresolved external symbol [email protected] MSVCRT.lib
Error 13 error LNK2001: unresolved external symbol [email protected] MSVCRT.lib
Error 5 error LNK2001: unresolved external symbol [email protected] MSVCRT.lib
輸出爲PROG1:
1>------ Build started: Project: TEst, Configuration: Release Win32 ------ 1>Linking... 1>Starting pass 1 1>Processed /DEFAULTLIB:msvcprt 1>Processed /DEFAULTLIB:MSVCRT 1>Processed /DEFAULTLIB:OLDNAMES 1>Searching libraries 1> Searching F:\Program Files\Microsoft Visual Studio 9.0\VC\lib\kernel32.lib: 1> Searching F:\Program Files\Microsoft Visual Studio 9.0\VC\lib\user32.lib: 1> Searching F:\Program Files\Microsoft Visual Studio
9.0\VC\lib\gdi32.lib: 1> Searching F:\Program Files\Microsoft Visual Studio 9.0\VC\lib\winspool.lib: 1> Searching F:\Program Files\Microsoft Visual Studio 9.0\VC\lib\comdlg32.lib: 1> Searching F:\Program Files\Microsoft Visual Studio
9.0\VC\lib\advapi32.lib: 1> Searching F:\Program Files\Microsoft Visual Studio 9.0\VC\lib\shell32.lib: 1> Searching F:\Program Files\Microsoft Visual Studio
9.0\VC\lib\ole32.lib: 1> Searching F:\Program Files\Microsoft Visual Studio 9.0\VC\lib\oleaut32.lib: 1> Searching F:\Program Files\Microsoft Visual Studio 9.0\VC\lib\uuid.lib: 1> Searching F:\Program Files\Microsoft Visual Studio 9.0\VC\lib\odbc32.lib: 1> Searching F:\Program Files\Microsoft Visual Studio
9.0\VC\lib\odbccp32.lib: 1> Searching F:\Program Files\Microsoft Visual Studio 9.0\VC\lib\msvcprt.lib: 1> Found "__declspec(dllimport) class std::basic_ostream<char,struct std::char_traits<char> > std::cout" ([email protected]@@[email protected][email protected]@[email protected]@@[email protected]) 1> Referenced in main.obj 1> Loaded msvcprt.lib(MSVCP90.dll) 1> Found "__declspec(dllimport) bool
__cdecl std::uncaught_exception(void)" ([email protected]@@YA_NXZ) 1> Referenced in main.obj 1> Loaded msvcprt.lib(MSVCP90.dll) 1> Found "__declspec(dllimport) public: char __thiscall std::basic_ios<char,struct std::char_traits<char>
>::fill(void)const " ([email protected][email protected][email protected]@[email protected]@@[email protected]@QBEDXZ) 1> Referenced in main.obj 1> Loaded msvcprt.lib(MSVCP90.dll) 1> Found "__declspec(dllimport) public: int __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sputn(char const *,int)" ([email protected][email protected][email protected]@[email protected]@@[email protected]@[email protected]) 1> Referenced in main.obj 1> Loaded msvcprt.lib(MSVCP90.dll) 1> Found "__declspec(dllimport) public: void __thiscall std::basic_ostream<char,struct std::char_traits<char> >::_Osfx(void)" ([email protected][email protected][email protected]@[email protected]@@[email protected]@QAEXXZ) 1> Referenced in main.obj 1> Loaded msvcprt.lib(MSVCP90.dll) 1> Found "__declspec(dllimport) public: class std::basic_ostream<char,struct std::char_traits<char> > * __thiscall std::basic_ios<char,struct std::char_traits<char>
>::tie(void)const " ([email protected][email protected][email protected]@[email protected]@@[email protected]@[email protected][email protected]@[email protected]@@[email protected]) 1> Referenced in main.obj 1> Loaded msvcprt.lib(MSVCP90.dll) 1> Found "__declspec(dllimport) public: void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::_Lock(void)" ([email protected][email protected][email protected]@[email protected]@@[email protected]@QAEXXZ) 1> Referenced in main.obj 1> Loaded msvcprt.lib(MSVCP90.dll) 1> Found "__declspec(dllimport) public: void __thiscall std::basic_streambuf<char,struct std::char_traits<char>
>::_Unlock(void)" ([email protected][email protected][email protected]@[email protected]@@[email protected]@QAEXXZ) 1> Referenced in main.obj 1> Loaded msvcprt.lib(MSVCP90.dll) 1> Found "__declspec(dllimport) public: int __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sputc(char)" ([email protected][email protected][email protected]@[email protected]@@[email protected]@[email protected]) 1> Referenced in main.obj 1> Loaded msvcprt.lib(MSVCP90.dll) 1> Found "__declspec(dllimport) public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::flush(void)" ([email protected][email protected][email protected]@[email protected]@@[email protected]@[email protected]) 1> Referenced in main.obj 1> Loaded msvcprt.lib(MSVCP90.dll) 1> Found "__declspec(dllimport) public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char>
>::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > & (__cdecl*)(class std::basic_ostream<char,struct std::char_traits<char> > &))" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@[email protected]@[email protected]) 1> Referenced in main.obj 1> Loaded msvcprt.lib(MSVCP90.dll) 1> Found "__declspec(dllimport) public: class std::basic_streambuf<char,struct std::char_traits<char> > * __thiscall std::basic_ios<char,struct std::char_traits<char>
>::rdbuf(void)const " ([email protected][email protected][email protected]@[email protected]@@[email protected]@[email protected][email protected]@[email protected]@@[email protected]) 1> Referenced in main.obj 1> Loaded msvcprt.lib(MSVCP90.dll) 1> Found "__declspec(dllimport) public: void __thiscall std::basic_ios<char,struct std::char_traits<char>
>::setstate(int,bool)" ([email protected][email protected][email protected]@[email protected]@@[email protected]@[email protected]) 1> Referenced in main.obj 1> Loaded msvcprt.lib(MSVCP90.dll) 1> Found "__declspec(dllimport) class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::endl(class std::basic_ostream<char,struct std::char_traits<char> > &)" ([email protected]@@[email protected][email protected]@[email protected]@@[email protected]@@Z) 1> Referenced in main.obj 1> Loaded msvcprt.lib(MSVCP90.dll) 1> Found "__declspec(dllimport) public: int __thiscall std::ios_base::width(int)" ([email protected][email protected]@@[email protected]) 1> Referenced in main.obj 1> Loaded msvcprt.lib(MSVCP90.dll) 1> Found "__declspec(dllimport) public: int __thiscall std::ios_base::width(void)const " ([email protected][email protected]@@QBEHXZ) 1> Referenced in main.obj 1> Loaded msvcprt.lib(MSVCP90.dll) 1> Found "__declspec(dllimport) public: int __thiscall std::ios_base::flags(void)const " ([email protected][email protected]@@QBEHXZ) 1> Referenced in main.obj 1> Loaded msvcprt.lib(MSVCP90.dll) 1> Found "__declspec(dllimport) public: bool __thiscall std::ios_base::good(void)const " ([email protected][email protected]@@QBE_NXZ) 1> Referenced in main.obj 1> Loaded msvcprt.lib(MSVCP90.dll) 1> Found "__declspec(dllimport) public: int __thiscall std::ios_base::rdstate(void)const " ([email protected][email protected]@@QBEHXZ) 1> Referenced in main.obj 1> Loaded msvcprt.lib(MSVCP90.dll) 1> Found "__declspec(dllimport) public: static int __cdecl std::char_traits<char>::eof(void)" ([email protected][email protected]@[email protected]@SAHXZ) 1> Referenced in main.obj 1> Loaded msvcprt.lib(MSVCP90.dll) 1> Found "__declspec(dllimport) public: static bool __cdecl std::char_traits<char>::eq_int_type(int const &,int const &)" ([email protected][email protected]@[email protected]@[email protected]) 1> Referenced in main.obj 1> Loaded msvcprt.lib(MSVCP90.dll) 1> Found "__declspec(dllimport) public: static unsigned int __cdecl std::char_traits<char>::length(char const *)" ([email protected][email protected]@[email protected]@[email protected]) 1> Referenced in main.obj 1> Loaded msvcprt.lib(MSVCP90.dll) 1> Found __IMPORT_DESCRIPTOR_MSVCP90 1> Referenced in msvcprt.lib(MSVCP90.dll) 1> Referenced in msvcprt.lib(MSVCP90.dll) 1> Referenced in msvcprt.lib(MSVCP90.dll) 1> Referenced in msvcprt.lib(MSVCP90.dll) 1> Referenced in msvcprt.lib(MSVCP90.dll) 1> Referenced in msvcprt.lib(MSVCP90.dll) 1> Referenced in msvcprt.lib(MSVCP90.dll) 1> Referenced in msvcprt.lib(MSVCP90.dll) 1> Referenced in msvcprt.lib(MSVCP90.dll) 1> Referenced in msvcprt.lib(MSVCP90.dll) 1> Referenced in msvcprt.lib(MSVCP90.dll) 1> Referenced in msvcprt.lib(MSVCP90.dll) 1> Referenced in msvcprt.lib(MSVCP90.dll) 1> Referenced in msvcprt.lib(MSVCP90.dll) 1> Referenced in msvcprt.lib(MSVCP90.dll) 1> Referenced in msvcprt.lib(MSVCP90.dll) 1> Referenced in msvcprt.lib(MSVCP90.dll) 1> Referenced in msvcprt.lib(MSVCP90.dll) 1> Referenced in msvcprt.lib(MSVCP90.dll) 1> Referenced in msvcprt.lib(MSVCP90.dll) 1> Referenced in msvcprt.lib(MSVCP90.dll) 1> Referenced in msvcprt.lib(MSVCP90.dll) 1> Loaded msvcprt.lib(MSVCP90.dll) 1> Found __NULL_IMPORT_DESCRIPTOR 1> Referenced in msvcprt.lib(MSVCP90.dll) 1> Loaded msvcprt.lib(MSVCP90.dll) 1> Found MSVCP90_NULL_THUNK_DATA 1> Referenced in msvcprt.lib(MSVCP90.dll) 1> Loaded msvcprt.lib(MSVCP90.dll) 1> Searching F:\Program Files\Microsoft Visual Studio 9.0\VC\lib\MSVCRT.lib: 1> Found @[email protected] 1> Referenced in main.obj 1> Loaded MSVCRT.lib(secchk.obj) 1> Found _mainCRTStartup 1> Loaded MSVCRT.lib(crtexe.obj) 1> Found
___report_gsfailure 1> Referenced in MSVCRT.lib(secchk.obj) 1> Loaded MSVCRT.lib(gs_report.obj) 1> Found ___security_cookie 1> Referenced in MSVCRT.lib(secchk.obj) 1> Referenced in MSVCRT.lib(gs_report.obj) 1> Loaded MSVCRT.lib(gs_cookie.obj) 1> Found
___CxxSetUnhandledExceptionFilter 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(unhandld.obj) 1> Found
__amsg_exit 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found __imp____getmainargs 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found
__dowildcard 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(wildcard.obj) 1> Found __newmode 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(_newmode.obj) 1> Found _atexit 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(atonexit.obj) 1> Found __RTC_Terminate 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(_initsect_.obj) 1> Found __imp___cexit 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found
__imp___exit 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found __XcptFilter 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found
__imp__exit 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found __imp____initenv 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found
__IsNonwritableInCurrentImage 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(pesect.obj) 1> Found
__initterm 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found ___xc_a 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(cinitexe.obj) 1>Processed /DEFAULTLIB:kernel32.lib 1> Processed /DISALLOWLIB:libc.lib 1> Processed /DISALLOWLIB:libcd.lib 1> Processed /DISALLOWLIB:libcmt.lib 1> Processed /DISALLOWLIB:libcmtd.lib 1> Processed /DISALLOWLIB:msvcrtd.lib 1> Found __initterm_e 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found
___native_startup_state 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(natstart.obj) 1> Found
__SEH_epilog4 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Referenced in MSVCRT.lib(atonexit.obj) 1> Loaded MSVCRT.lib(sehprolg4.obj) 1> Found __except_handler4 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Referenced in MSVCRT.lib(atonexit.obj) 1> Referenced in MSVCRT.lib(pesect.obj) 1> Referenced in MSVCRT.lib(sehprolg4.obj) 1> Loaded MSVCRT.lib(chandler4gs.obj) 1> Found __imp___configthreadlocale 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found
___globallocalestatus 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(xthdloc.obj) 1> Found
__setdefaultprecision 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(fp8.obj) 1> Found __imp____setusermatherr 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found __matherr 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(merr.obj) 1> Found __setargv 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(dllargv.obj) 1> Found __adjust_fdiv 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(adjustfd.obj) 1> Found
__imp___adjust_fdiv 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found
__commode 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(xncommod.obj) 1> Found __imp____p__commode 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found
__fmode 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(xtxtmode.obj) 1> Found __imp____p__fmode 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found
__imp___encode_pointer 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Referenced in MSVCRT.lib(atonexit.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found __imp____set_app_type 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found
___security_init_cookie 1> Referenced in MSVCRT.lib(crtexe.obj) 1> Loaded MSVCRT.lib(gs_support.obj) 1> Found __crt_debugger_hook 1> Referenced in MSVCRT.lib(gs_report.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found "void __cdecl terminate(void)" ([email protected]@YAXXZ) 1> Referenced in MSVCRT.lib(unhandld.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found
__IMPORT_DESCRIPTOR_MSVCR90 1> Referenced in MSVCRT.lib(MSVCR90.dll) 1> Referenced in MSVCRT.lib(MSVCR90.dll) 1> Referenced in MSVCRT.lib(MSVCR90.dll) 1> Referenced in MSVCRT.lib(MSVCR90.dll) 1> Referenced in MSVCRT.lib(MSVCR90.dll) 1> Referenced in MSVCRT.lib(MSVCR90.dll) 1> Referenced in MSVCRT.lib(MSVCR90.dll) 1> Referenced in MSVCRT.lib(MSVCR90.dll) 1> Referenced in MSVCRT.lib(MSVCR90.dll) 1> Referenced in MSVCRT.lib(MSVCR90.dll) 1> Referenced in MSVCRT.lib(MSVCR90.dll) 1> Referenced in MSVCRT.lib(MSVCR90.dll) 1> Referenced in MSVCRT.lib(MSVCR90.dll) 1> Referenced in MSVCRT.lib(MSVCR90.dll) 1> Referenced in MSVCRT.lib(MSVCR90.dll) 1> Referenced in MSVCRT.lib(MSVCR90.dll) 1> Referenced in MSVCRT.lib(MSVCR90.dll) 1> Referenced in MSVCRT.lib(MSVCR90.dll) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found __unlock 1> Referenced in MSVCRT.lib(atonexit.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found ___dllonexit 1> Referenced in MSVCRT.lib(atonexit.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found
__lock 1> Referenced in MSVCRT.lib(atonexit.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found __imp___onexit 1> Referenced in MSVCRT.lib(atonexit.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found
__imp___decode_pointer 1> Referenced in MSVCRT.lib(atonexit.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found
__except_handler4_common 1> Referenced in MSVCRT.lib(chandler4gs.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found __invoke_watson 1> Referenced in MSVCRT.lib(fp8.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found __controlfp_s 1> Referenced in MSVCRT.lib(fp8.obj) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Found MSVCR90_NULL_THUNK_DATA 1> Referenced in MSVCRT.lib(MSVCR90.dll) 1> Loaded MSVCRT.lib(MSVCR90.dll) 1> Searching F:\Program Files\Microsoft Visual Studio 9.0\VC\lib\OLDNAMES.lib: 1> Searching F:\Program Files\Microsoft Visual Studio
9.0\VC\lib\kernel32.lib: 1> Searching F:\Program Files\Microsoft Visual Studio 9.0\VC\lib\user32.lib: 1> Searching F:\Program Files\Microsoft Visual Studio
9.0\VC\lib\gdi32.lib: 1> Searching F:\Program Files\Microsoft Visual Studio 9.0\VC\lib\winspool.lib: 1> Searching F:\Program Files\Microsoft Visual Studio 9.0\VC\lib\comdlg32.lib: 1> Searching F:\Program Files\Microsoft Visual Studio
9.0\VC\lib\advapi32.lib: 1> Searching F:\Program Files\Microsoft Visual Studio 9.0\VC\lib\shell32.lib: 1> Searching F:\Program Files\Microsoft Visual Studio
9.0\VC\lib\ole32.lib: 1> Searching F:\Program Files\Microsoft Visual Studio 9.0\VC\lib\oleaut32.lib: 1> Searching F:\Program Files\Microsoft Visual Studio 9.0\VC\lib\uuid.lib: 1> Searching F:\Program Files\Microsoft Visual Studio 9.0\VC\lib\odbc32.lib: 1> Searching F:\Program Files\Microsoft Visual Studio
9.0\VC\lib\odbccp32.lib: 1> Searching F:\Program Files\Microsoft Visual Studio 9.0\VC\lib\msvcprt.lib: 1>Finished searching libraries 1>Finished pass 1 1>MSVCRT.lib(crtexe.obj) : error LNK2001: unresolved external symbol
[email protected] 1>MSVCRT.lib(crtexe.obj) : error LNK2001: unresolved external symbol
[email protected] 1>MSVCRT.lib(crtexe.obj) : error LNK2001: unresolved external symbol
[email protected] 1>MSVCRT.lib(gs_report.obj) : error LNK2001: unresolved external symbol
[email protected] 1>MSVCRT.lib(gs_report.obj) : error LNK2001: unresolved external symbol
[email protected] 1>MSVCRT.lib(gs_report.obj) : error LNK2001: unresolved external symbol
[email protected] 1>MSVCRT.lib(gs_report.obj) : error LNK2001: unresolved external symbol
[email protected] 1>MSVCRT.lib(unhandld.obj) : error LNK2001: unresolved external symbol
[email protected] 1>MSVCRT.lib(gs_report.obj) : error LNK2001: unresolved external symbol
[email protected] 1>MSVCRT.lib(gs_support.obj) : error LNK2001: unresolved external symbol
[email protected] 1>MSVCRT.lib(gs_support.obj) : error LNK2001: unresolved external symbol
[email protected] 1>MSVCRT.lib(gs_support.obj) : error LNK2001: unresolved external symbol
[email protected] 1>MSVCRT.lib(gs_support.obj) : error LNK2001: unresolved external symbol
[email protected] 1>MSVCRT.lib(gs_support.obj) : error LNK2001: unresolved external symbol
[email protected] 1>F:\Users\GMan\Documents\Visual Studio 2008\Projects\TEst\Release\TEst.exe : fatal error LNK1120: 13 unresolved externals 1>Build Time 0:00 1>Build log was saved at "file://f:\Users\GMan\Documents\Visual Studio 2008\Projects\TEst\TEst\Release\BuildLog.htm" 1>TEst - 15 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========
代碼PROG1:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World" << endl;
}
你搞砸了安裝非常糟糕。重新安裝。卸載後,您必須在再次安裝之前刪除手動複製的文件。 –
這並不是說安裝很糟糕,而是它的安裝位置。請參閱下面的答案。即使在全新安裝VS2008之後,這仍然在發生。 – Geowil