求助:一个有关用VS2008编译出现的问题
程序很简单,如下:
#include"iostream"
using namespace std;
void main()
{
cout<<"hello world!";
}
但却出现了问题,
正在编译...
1>hello.cpp
1>正在链接...
1>MSVCMRTD.lib(mstartup.obj) : error LNK2028: 无法解析的标记(0A0000A0) "extern "C" void __stdcall Sleep(unsigned long)" (?Sleep@@$$J14YGXK@Z),该标记在函数 __catch$?_Initialize@LanguageSupport@<CrtImplementationDetails>@@$$FAAEXXZ$0 中被引用
1>MSVCRTD.lib(crtexe.obj) : error LNK2019: 无法解析的外部符号 __imp__InterlockedExchange@8,该符号在函数 ___tmainCRTStartup 中被引用
1>MSVCRTD.lib(crtexe.obj) : error LNK2019: 无法解析的外部符号 __imp__Sleep@4,该符号在函数 ___tmainCRTStartup 中被引用
1>MSVCRTD.lib(crtexe.obj) : error LNK2019: 无法解析的外部符号 __imp__InterlockedCompareExchange@12,该符号在函数 ___tmainCRTStartup 中被引用
1>MSVCRTD.lib(unhandld.obj) : error LNK2019: 无法解析的外部符号 __imp__SetUnhandledExceptionFilter@4,该符号在函数 ___CxxSetUnhandledExceptionFilter 中被引用
1>MSVCRTD.lib(gs_report.obj) : error LNK2001: 无法解析的外部符号 __imp__SetUnhandledExceptionFilter@4
1>MSVCRTD.lib(gs_support.obj) : error LNK2019: 无法解析的外部符号 __imp__QueryPerformanceCounter@4,该符号在函数 ___security_init_cookie 中被引用
1>MSVCRTD.lib(gs_support.obj) : error LNK2019: 无法解析的外部符号 __imp__GetTickCount@0,该符号在函数 ___security_init_cookie 中被引用
1>MSVCRTD.lib(gs_support.obj) : error LNK2019: 无法解析的外部符号 __imp__GetCurrentThreadId@0,该符号在函数 ___security_init_cookie 中被引用
1>MSVCRTD.lib(gs_support.obj) : error LNK2019: 无法解析的外部符号 __imp__GetCurrentProcessId@0,该符号在函数 ___security_init_cookie 中被引用
1>MSVCRTD.lib(gs_support.obj) : error LNK2019: 无法解析的外部符号 __imp__GetSystemTimeAsFileTime@4,该符号在函数 ___security_init_cookie 中被引用
1>MSVCRTD.lib(gs_report.obj) : error LNK2019: 无法解析的外部符号 __imp__TerminateProcess@8,该符号在函数 ___report_gsfailure 中被引用
1>MSVCRTD.lib(gs_report.obj) : error LNK2019: 无法解析的外部符号 __imp__GetCurrentProcess@0,该符号在函数 ___report_gsfailure 中被引用
1>MSVCRTD.lib(gs_report.obj) : error LNK2019: 无法解析的外部符号 __imp__UnhandledExceptionFilter@4,该符号在函数 ___report_gsfailure 中被引用
1>MSVCRTD.lib(gs_report.obj) : error LNK2019: 无法解析的外部符号 __imp__IsDebuggerPresent@0,该符号在函数 ___report_gsfailure 中被引用
1>MSVCMRTD.lib(mstartup.obj) : error LNK2019: 无法解析的外部符号 "extern "C" void __stdcall Sleep(unsigned long)" (?Sleep@@$$J14YGXK@Z),该符号在函数 __catch$?_Initialize@LanguageSupport@<CrtImplementationDetails>@@$$FAAEXXZ$0 中被引用
1>LINK : error LNK2001: 无法解析的外部符号 __CorExeMain@0