情况如下:
c++文件 a.cpp:
#include
using namespace std;
int main()
{
cout<<"This"<<"is";
cout<<"a"<<"C++";
cout<<"program.";
return 0;
}
命令:
cl /EHsc a.cpp
结果:
.....
.....
t EHExceptionRecord *)" (?_UnwindNestedFrames@@YGXPAUEHRegistrationNode@@PAUEHEx
ceptionRecord@@@Z) 中被引用
LIBCMT.lib(exsup.obj) : error LNK2001: 无法解析的外部符号 _RtlUnwind@16
LIBCMT.lib(exsup4.obj) : error LNK2001: 无法解析的外部符号 _RtlUnwind@16
LIBCMT.lib(throw.obj) : error LNK2019: 无法解析的外部符号 __imp__RaiseException@
16,该符号在函数 __CxxThrowException@8 中被引用
LIBCMT.lib(crt0.obj) : error LNK2019: 无法解析的外部符号 __imp__GetCommandLineA@
0,该符号在函数 ___tmainCRTStartup 中被引用
LIBCMT.lib(invarg.obj) : error LNK2019: 无法解析的外部符号 __imp__TerminateProce
ss@8,该符号在函数 __invoke_watson 中被引用
LIBCMT.lib(gs_report.obj) : error LNK2001: 无法解析的外部符号 __imp__TerminatePr
ocess@8
LIBCMT.lib(invarg.obj) : error LNK2019: 无法解析的外部符号 __imp__GetCurrentProc
ess@0,该符号在函数 __invoke_watson 中被引用
LIBCMT.lib(gs_report.obj) : error LNK2001: 无法解析的外部符号 __imp__GetCurrentP
rocess@0
LIBCMT.lib(invarg.obj) : error LNK2019: 无法解析的外部符号 __imp__UnhandledExcep
tionFilter@4,该符号在函数 __invoke_watson 中被引用
LIBCMT.lib(abort.obj) : error LNK2001: 无法解析的外部符号 __imp__UnhandledExcept
ionFilter@4
LIBCMT.lib(gs_report.obj) : error LNK2001: 无法解析的外部符号 __imp__UnhandledEx
ceptionFilter@4
LIBCMT.lib(invarg.obj) : error LNK2019: 无法解析的外部符号 __imp__SetUnhandledEx
ceptionFilter@4,该符号在函数 __invoke_watson 中被引用
LIBCMT.lib(abort.obj) : error LNK2001: 无法解析的外部符号 __imp__SetUnhandledExc
eptionFilter@4
LIBCMT.lib(gs_report.obj) : error LNK2001: 无法解析的外部符号 __imp__SetUnhandle
dExceptionFilter@4
LIBCMT.lib(unhandld.obj) : error LNK2001: 无法解析的外部符号 __imp__SetUnhandled
ExceptionFilter@4
LIBCMT.lib(invarg.obj) : error LNK2019: 无法解析的外部符号 __imp__IsDebuggerPres
ent@0,该符号在函数 __invoke_watson 中被引用
LIBCMT.lib(gs_report.obj) : error LNK2001: 无法解析的外部符号 __imp__IsDebuggerP
resent@0
LIBCMT.lib(osfinfo.obj) : error LNK2019: 无法解析的外部符号 __imp__GetLastError@
0,该符号在函数 __set_osfhnd 中被引用
LIBCMT.lib(a_loc.obj) : error LNK2001: 无法解析的外部符号 __imp__GetLastError@0
LIBCMT.lib(a_cmp.obj) : error LNK2001: 无法解析的外部符号 __imp__GetLastError@0
LIBCMT.lib(rand_s.obj) : error LNK2001: 无法解析的外部符号 __imp__GetLastError@0
LIBCMT.lib(read.obj) : error LNK2001: 无法解析的外部符号 __imp__GetLastError@0
LIBCMT.lib(lseeki64.obj) : error LNK2001: 无法解析的外部符号 __imp__GetLastError
@0
LIBCMT.lib(putwch.obj) : error LNK2001: 无法解析的外部符号 __imp__GetLastError@0
LIBCMT.lib(a_str.obj) : error LNK2001: 无法解析的外部符号 __imp__GetLastError@0
LIBCMT.lib(inithelp.obj) : error LNK2001: 无法解析的外部符号 __imp__GetLastError
@0
LIBCMT.lib(realloc.obj) : error LNK2001: 无法解析的外部符号 __imp__GetLastError@
0
LIBCMT.lib(winsig.obj) : error LNK2001: 无法解析的外部符号 __imp__GetLastError@0
LIBCMT.lib(write.obj) : error LNK2001: 无法解析的外部符号 __imp__GetLastError@0
LIBCMT.lib(commit.obj) : error LNK2001: 无法解析的外部符号 __imp__GetLastError@0
LIBCMT.lib(lseek.obj) : error LNK2001: 无法解析的外部符号 __imp__GetLastError@0
LIBCMT.lib(close.obj) : error LNK2001: 无法解析的外部符号 __imp__GetLastError@0
LIBCMT.lib(free.obj) : error LNK2001: 无法解析的外部符号 __imp__GetLastError@0
LIBCMT.lib(a_map.obj) : error LNK2001: 无法解析的外部符号 __imp__GetLastError@0
LIBCMT.lib(tidtable.obj) : error LNK2001: 无法解析的外部符号 __imp__GetLastError
@0
LIBCMT.lib(a_env.obj) : error LNK2001: 无法解析的外部符号 __imp__GetLastError@0
LIBCMT.lib(free.obj) : error LNK2019: 无法解析的外部符号 __imp__HeapFree@12,该
符号在函数 _free 中被引用
LIBCMT.lib(heapinit.obj) : error LNK2001: 无法解析的外部符号 __imp__HeapFree@12
LIBCMT.lib(sbheap.obj) : error LNK2001: 无法解析的外部符号 __imp__HeapFree@12
LIBCMT.lib(a_map.obj) : error LNK2019: 无法解析的外部符号 __imp__LCMapStringA@24
,该符号在函数 "int __cdecl __crtLCMapStringA_stat(struct localeinfo_struct *,un
signed long,unsigned long,char const *,int,char *,int,int,int)" (?__crtLCMapStri
ngA_stat@@YAHPAUlocaleinfo_struct@@KKPBDHPADHHH@Z) 中被引用
LIBCMT.lib(putwch.obj) : error LNK2001: 无法解析的外部符号 __imp__WideCharToMult
iByte@32
LIBCMT.lib(a_loc.obj) : error LNK2019: 无法解析的外部符号 __imp__WideCharToMulti
Byte@32,该符号在函数 "int __cdecl __crtGetLocaleInfoA_stat(struct localeinfo_st
ruct *,unsigned long,unsigned long,char *,int,int)" (?__crtGetLocaleInfoA_stat@@
YAHPAUlocaleinfo_struct@@KKPADHH@Z) 中被引用
LIBCMT.lib(tzset.obj) : error LNK2001: 无法解析的外部符号 __imp__WideCharToMulti
Byte@32
LIBCMT.lib(wtombenv.obj) : error LNK2001: 无法解析的外部符号 __imp__WideCharToMu
ltiByte@32
LIBCMT.lib(a_map.obj) : error LNK2001: 无法解析的外部符号 __imp__WideCharToMulti
Byte@32
LIBCMT.lib(a_env.obj) : error LNK2001: 无法解析的外部符号 __imp__WideCharToMulti
Byte@32
LIBCMT.lib(write.obj) : error LNK2001: 无法解析的外部符号 __imp__WideCharToMulti
Byte@32
LIBCMT.lib(convrtcp.obj) : error LNK2001: 无法解析的外部符号 __imp__WideCharToMu
ltiByte@32
LIBCMT.lib(mbtowc.obj) : error LNK2001: 无法解析的外部符号 __imp__MultiByteToWid
eChar@24
LIBCMT.lib(a_cmp.obj) : error LNK2019: 无法解析的外部符号 __imp__MultiByteToWide
Char@24,该符号在函数 "int __cdecl __crtCompareStringA_stat(struct localeinfo_st
ruct *,unsigned long,unsigned long,char const *,int,char const *,int,int)" (?__c
rtCompareStringA_stat@@YAHPAUlocaleinfo_struct@@KKPBDH1HH@Z) 中被引用
LIBCMT.lib(a_map.obj) : error LNK2001: 无法解析的外部符号 __imp__MultiByteToWide
Char@24
LIBCMT.lib(convrtcp.obj) : error LNK2001: 无法解析的外部符号 __imp__MultiByteToW
ideChar@24
LIBCMT.lib(a_str.obj) : error LNK2001: 无法解析的外部符号 __imp__MultiByteToWide
Char@24
LIBCMT.lib(read.obj) : error LNK2001: 无法解析的外部符号 __imp__MultiByteToWideC
har@24
LIBCMT.lib(a_map.obj) : error LNK2019: 无法解析的外部符号 __imp__LCMapStringW@24
,该符号在函数 "int __cdecl __crtLCMapStringA_stat(struct localeinfo_struct *,un
signed long,unsigned long,char const *,int,char *,int,int,int)" (?__crtLCMapStri
ngA_stat@@YAHPAUlocaleinfo_struct@@KKPBDHPADHHH@Z) 中被引用
LIBCMT.lib(initctyp.obj) : error LNK2019: 无法解析的外部符号 __imp__GetCPInfo@8
,该符号在函数 ___init_ctype 中被引用
LIBCMT.lib(mbctype.obj) : error LNK2001: 无法解析的外部符号 __imp__GetCPInfo@8
LIBCMT.lib(convrtcp.obj) : error LNK2001: 无法解析的外部符号 __imp__GetCPInfo@8
LIBCMT.lib(a_cmp.obj) : error LNK2001: 无法解析的外部符号 __imp__GetCPInfo@8
LIBCMT.lib(tidtable.obj) : error LNK2019: 无法解析的外部符号 __imp__GetModuleHan
dleW@4,该符号在函数 __crt_wait_module_handle 中被引用
LIBCMT.lib(crt0dat.obj) : error LNK2001: 无法解析的外部符号 __imp__GetModuleHand
leW@4
LIBCMT.lib(tidtable.obj) : error LNK2019: 无法解析的外部符号 __imp__GetProcAddre
ss@8,该符号在函数 __encode_pointer 中被引用
LIBCMT.lib(crt0dat.obj) : error LNK2001: 无法解析的外部符号 __imp__GetProcAddres
s@8
LIBCMT.lib(rand_s.obj) : error LNK2001: 无法解析的外部符号 __imp__GetProcAddress
@8
LIBCMT.lib(crtmbox.obj) : error LNK2001: 无法解析的外部符号 __imp__GetProcAddres
s@8
LIBCMT.lib(tidtable.obj) : error LNK2019: 无法解析的外部符号 __imp__TlsGetValue@
4,该符号在函数 __encode_pointer 中被引用
LIBCMT.lib(tidtable.obj) : error LNK2019: 无法解析的外部符号 __imp__TlsAlloc@0,
该符号在函数 ___crtTlsAlloc@4 中被引用
LIBCMT.lib(tidtable.obj) : error LNK2019: 无法解析的外部符号 __imp__TlsSetValue@
8,该符号在函数 ___set_flsgetvalue 中被引用
LIBCMT.lib(tidtable.obj) : error LNK2019: 无法解析的外部符号 __imp__TlsFree@4,
该符号在函数 __mtterm 中被引用
LIBCMT.lib(tidtable.obj) : error LNK2019: 无法解析的外部符号 __imp__SetLastError
@4,该符号在函数 __getptd_noexit 中被引用
LIBCMT.lib(initcrit.obj) : error LNK2001: 无法解析的外部符号 __imp__SetLastError
@4
LIBCMT.lib(tidtable.obj) : error LNK2019: 无法解析的外部符号 __imp__GetCurrentTh
readId@0,该符号在函数 __getptd_noexit 中被引用
LIBCMT.lib(gs_support.obj) : error LNK2001: 无法解析的外部符号 __imp__GetCurrent
ThreadId@0
LIBCMT.lib(tidtable.obj) : error LNK2019: 无法解析的外部符号 __imp__GetCurrentTh
read@0,该符号在函数 ___threadhandle 中被引用
LIBCMT.lib(malloc.obj) : error LNK2019: 无法解析的外部符号 __imp__HeapAlloc@12,
该符号在函数 __heap_alloc 中被引用
LIBCMT.lib(sbheap.obj) : error LNK2001: 无法解析的外部符号 __imp__HeapAlloc@12
LIBCMT.lib(calloc_impl.obj) : error LNK2001: 无法解析的外部符号 __imp__HeapAlloc
@12
LIBCMT.lib(realloc.obj) : error LNK2001: 无法解析的外部符号 __imp__HeapAlloc@12
LIBCMT.lib(crt0dat.obj) : error LNK2019: 无法解析的外部符号 __imp__ExitProcess@4
,该符号在函数 ___crtExitProcess 中被引用
LIBCMT.lib(crt0msg.obj) : error LNK2019: 无法解析的外部符号 __imp__WriteFile@20
,该符号在函数 __NMSG_WRITE 中被引用
LIBCMT.lib(write.obj) : error LNK2001: 无法解析的外部符号 __imp__WriteFile@20
LIBCMT.lib(crt0msg.obj) : error LNK2019: 无法解析的外部符号 __imp__GetStdHandle@
4,该符号在函数 __NMSG_WRITE 中被引用
LIBCMT.lib(ioinit.obj) : error LNK2001: 无法解析的外部符号 __imp__GetStdHandle@4
LIBCMT.lib(crt0msg.obj) : error LNK2019: 无法解析的外部符号 __imp__GetModuleFile
NameA@12,该符号在函数 __NMSG_WRITE 中被引用
LIBCMT.lib(stdargv.obj) : error LNK2001: 无法解析的外部符号 __imp__GetModuleFile
NameA@12
LIBCMT.lib(a_env.obj) : error LNK2019: 无法解析的外部符号 __imp__FreeEnvironment
StringsA@4,该符号在函数 ___crtGetEnvironmentStringsA 中被引用
LIBCMT.lib(a_env.obj) : error LNK2019: 无法解析的外部符号 __imp__GetEnvironmentS
trings@0,该符号在函数 ___crtGetEnvironmentStringsA 中被引用
LIBCMT.lib(a_env.obj) : error LNK2019: 无法解析的外部符号 __imp__FreeEnvironment
StringsW@4,该符号在函数 ___crtGetEnvironmentStringsA 中被引用
LIBCMT.lib(a_env.obj) : error LNK2019: 无法解析的外部符号 __imp__GetEnvironmentS
tringsW@0,该符号在函数 ___crtGetEnvironmentStringsA 中被引用
LIBCMT.lib(ioinit.obj) : error LNK2019: 无法解析的外部符号 __imp__SetHandleCount
@4,该符号在函数 __ioinit 中被引用
LIBCMT.lib(ioinit.obj) : error LNK2019: 无法解析的外部符号 __imp__GetFileType@4
,该符号在函数 __ioinit 中被引用
LIBCMT.lib(osfinfo.obj) : error LNK2001: 无法解析的外部符号 __imp__GetFileType@4
LIBCMT.lib(ioinit.obj) : error LNK2019: 无法解析的外部符号 __imp__GetStartupInfo
A@4,该符号在函数 __ioinit 中被引用
LIBCMT.lib(heapinit.obj) : error LNK2019: 无法解析的外部符号 __imp__HeapCreate@1
2,该符号在函数 __heap_init 中被引用
LIBCMT.lib(heapinit.obj) : error LNK2019: 无法解析的外部符号 __imp__HeapDestroy@
4,该符号在函数 __heap_term 中被引用
LIBCMT.lib(heapinit.obj) : error LNK2019: 无法解析的外部符号 __imp__VirtualFree@
12,该符号在函数 __heap_term 中被引用
LIBCMT.lib(sbheap.obj) : error LNK2001: 无法解析的外部符号 __imp__VirtualFree@12
LIBCMT.lib(gs_support.obj) : error LNK2019: 无法解析的外部符号 __imp__QueryPerfo
rmanceCounter@4,该符号在函数 ___security_init_cookie 中被引用
LIBCMT.lib(gs_support.obj) : error LNK2019: 无法解析的外部符号 __imp__GetTickCou
nt@0,该符号在函数 ___security_init_cookie 中被引用
LIBCMT.lib(gs_support.obj) : error LNK2019: 无法解析的外部符号 __imp__GetCurrent
ProcessId@0,该符号在函数 ___security_init_cookie 中被引用
LIBCMT.lib(gs_support.obj) : error LNK2019: 无法解析的外部符号 __imp__GetSystemT
imeAsFileTime@4,该符号在函数 ___security_init_cookie 中被引用
LIBCMT.lib(mlock.obj) : error LNK2019: 无法解析的外部符号 __imp__FatalAppExitA@8
,该符号在函数 __lockerr_exit 中被引用
LIBCMT.lib(sbheap.obj) : error LNK2019: 无法解析的外部符号 __imp__VirtualAlloc@1
6,该符号在函数 ___sbh_alloc_new_region 中被引用
LIBCMT.lib(sbheap.obj) : error LNK2019: 无法解析的外部符号 __imp__HeapReAlloc@16
,该符号在函数 ___sbh_alloc_new_region 中被引用
LIBCMT.lib(realloc.obj) : error LNK2001: 无法解析的外部符号 __imp__HeapReAlloc@1
6
LIBCMT.lib(write.obj) : error LNK2019: 无法解析的外部符号 __imp__GetConsoleCP@0
,该符号在函数 __write_nolock 中被引用
LIBCMT.lib(write.obj) : error LNK2019: 无法解析的外部符号 __imp__GetConsoleMode@
8,该符号在函数 __write_nolock 中被引用
LIBCMT.lib(commit.obj) : error LNK2019: 无法解析的外部符号 __imp__FlushFileBuffe
rs@4,该符号在函数 __commit 中被引用
LIBCMT.lib(ftelli64.obj) : error LNK2019: 无法解析的外部符号 __imp__ReadFile@20
,该符号在函数 __ftelli64_nolock 中被引用
LIBCMT.lib(read.obj) : error LNK2001: 无法解析的外部符号 __imp__ReadFile@20
LIBCMT.lib(lseek.obj) : error LNK2019: 无法解析的外部符号 __imp__SetFilePointer@
16,该符号在函数 __lseek_nolock 中被引用
LIBCMT.lib(lseeki64.obj) : error LNK2001: 无法解析的外部符号 __imp__SetFilePoint
er@16
LIBCMT.lib(close.obj) : error LNK2019: 无法解析的外部符号 __imp__CloseHandle@4,
该符号在函数 __close_nolock 中被引用
LIBCMT.lib(initcon.obj) : error LNK2001: 无法解析的外部符号 __imp__CloseHandle@4
LIBCMT.lib(msize.obj) : error LNK2019: 无法解析的外部符号 __imp__HeapSize@12,该
符号在函数 __msize 中被引用
LIBCMT.lib(mbctype.obj) : error LNK2019: 无法解析的外部符号 __imp__GetACP@0,该
符号在函数 "int __cdecl getSystemCP(int)" (?getSystemCP@@YAHH@Z) 中被引用
LIBCMT.lib(getqloc.obj) : error LNK2001: 无法解析的外部符号 __imp__GetACP@0
LIBCMT.lib(mbctype.obj) : error LNK2019: 无法解析的外部符号 __imp__GetOEMCP@0,
该符号在函数 "int __cdecl getSystemCP(int)" (?getSystemCP@@YAHH@Z) 中被引用
LIBCMT.lib(mbctype.obj) : error LNK2019: 无法解析的外部符号 __imp__IsValidCodePa
ge@4,该符号在函数 __setmbcp_nolock 中被引用
LIBCMT.lib(getqloc.obj) : error LNK2001: 无法解析的外部符号 __imp__IsValidCodePa
ge@4
LIBCMT.lib(convrtcp.obj) : error LNK2019: 无法解析的外部符号 __imp__GetLocaleInf
oA@16,该符号在函数 ___ansicp 中被引用
LIBCMT.lib(getqloc.obj) : error LNK2001: 无法解析的外部符号 __imp__GetLocaleInfo
A@16
LIBCMT.lib(a_loc.obj) : error LNK2001: 无法解析的外部符号 __imp__GetLocaleInfoA@
16
LIBCMT.lib(a_str.obj) : error LNK2019: 无法解析的外部符号 __imp__GetStringTypeA@
20,该符号在函数 "int __cdecl __crtGetStringTypeA_stat(struct localeinfo_struct
*,unsigned long,char const *,int,unsigned short *,int,int,int)" (?__crtGetString
TypeA_stat@@YAHPAUlocaleinfo_struct@@KPBDHPAGHHH@Z) 中被引用
LIBCMT.lib(a_str.obj) : error LNK2019: 无法解析的外部符号 __imp__GetStringTypeW@
16,该符号在函数 "int __cdecl __crtGetStringTypeA_stat(struct localeinfo_struct
*,unsigned long,char const *,int,unsigned short *,int,int,int)" (?__crtGetString
TypeA_stat@@YAHPAUlocaleinfo_struct@@KPBDHPAGHHH@Z) 中被引用
LIBCMT.lib(w_str.obj) : error LNK2001: 无法解析的外部符号 __imp__GetStringTypeW@
16
LIBCMT.lib(winsig.obj) : error LNK2019: 无法解析的外部符号 __imp__SetConsoleCtrl
Handler@8,该符号在函数 _signal 中被引用
LIBCMT.lib(strftime.obj) : error LNK2019: 无法解析的外部符号 __imp__GetTimeForma
tA@24,该符号在函数 "int __cdecl _store_winword(struct localeinfo_struct *,int,s
truct tm const *,char * *,unsigned int *,struct __lc_time_data *)" (?_store_winw
ord@@YAHPAUlocaleinfo_struct@@HPBUtm@@PAPADPAIPAU__lc_time_data@@@Z) 中被引用
LIBCMT.lib(strftime.obj) : error LNK2019: 无法解析的外部符号 __imp__GetDateForma
tA@24,该符号在函数 "int __cdecl _store_winword(struct localeinfo_struct *,int,s
truct tm const *,char * *,unsigned int *,struct __lc_time_data *)" (?_store_winw
ord@@YAHPAUlocaleinfo_struct@@HPBUtm@@PAPADPAIPAU__lc_time_data@@@Z) 中被引用
LIBCMT.lib(getqloc.obj) : error LNK2019: 无法解析的外部符号 __imp__GetUserDefaul
tLCID@0,该符号在函数 _GetLcidFromDefault 中被引用
LIBCMT.lib(getqloc.obj) : error LNK2019: 无法解析的外部符号 __imp__EnumSystemLoc
alesA@8,该符号在函数 _GetLcidFromCountry 中被引用
LIBCMT.lib(getqloc.obj) : error LNK2019: 无法解析的外部符号 __imp__IsValidLocale
@8,该符号在函数 ___get_qualified_locale 中被引用
LIBCMT.lib(rand_s.obj) : error LNK2019: 无法解析的外部符号 __imp__FreeLibrary@4
,该符号在函数 _rand_s 中被引用
LIBCMT.lib(rand_s.obj) : error LNK2019: 无法解析的外部符号 __imp__LoadLibraryA@4
,该符号在函数 _rand_s 中被引用
LIBCMT.lib(crtmbox.obj) : error LNK2001: 无法解析的外部符号 __imp__LoadLibraryA@
4
LIBCMT.lib(initcrit.obj) : error LNK2019: 无法解析的外部符号 __imp__InitializeCr
iticalSectionAndSpinCount@8,该符号在函数 ___crtInitCritSecAndSpinCount 中被引用
LIBCMT.lib(putwch.obj) : error LNK2019: 无法解析的外部符号 __imp__WriteConsoleA@
20,该符号在函数 __putwch_nolock 中被引用
LIBCMT.lib(putwch.obj) : error LNK2019: 无法解析的外部符号 __imp__GetConsoleOutp
utCP@0,该符号在函数 __putwch_nolock 中被引用
LIBCMT.lib(putwch.obj) : error LNK2019: 无法解析的外部符号 __imp__WriteConsoleW@
20,该符号在函数 __putwch_nolock 中被引用
LIBCMT.lib(osfinfo.obj) : error LNK2019: 无法解析的外部符号 __imp__SetStdHandle@
8,该符号在函数 __set_osfhnd 中被引用
LIBCMT.lib(w_loc.obj) : error LNK2019: 无法解析的外部符号 __imp__GetLocaleInfoW@
16,该符号在函数 "int __cdecl __crtGetLocaleInfoW_stat(struct localeinfo_struct
*,unsigned long,unsigned long,wchar_t *,int,int)" (?__crtGetLocaleInfoW_stat@@YA
HPAUlocaleinfo_struct@@KKPA_WHH@Z) 中被引用
LIBCMT.lib(a_loc.obj) : error LNK2001: 无法解析的外部符号 __imp__GetLocaleInfoW@
16
LIBCMT.lib(tzset.obj) : error LNK2019: 无法解析的外部符号 __imp__GetTimeZoneInfo
rmation@4,该符号在函数 __tzset_nolock 中被引用
LIBCMT.lib(initcon.obj) : error LNK2019: 无法解析的外部符号 __imp__CreateFileA@2
8,该符号在函数 ___initconin 中被引用
LIBCMT.lib(a_cmp.obj) : error LNK2019: 无法解析的外部符号 __imp__CompareStringA@
24,该符号在函数 "int __cdecl __crtCompareStringA_stat(struct localeinfo_struct
*,unsigned long,unsigned long,char const *,int,char const *,int,int)" (?__crtCom
pareStringA_stat@@YAHPAUlocaleinfo_struct@@KKPBDH1HH@Z) 中被引用
LIBCMT.lib(a_cmp.obj) : error LNK2019: 无法解析的外部符号 __imp__CompareStringW@
24,该符号在函数 "int __cdecl __crtCompareStringA_stat(struct localeinfo_struct
*,unsigned long,unsigned long,char const *,int,char const *,int,int)" (?__crtCom
pareStringA_stat@@YAHPAUlocaleinfo_struct@@KKPBDH1HH@Z) 中被引用
LIBCMT.lib(setenv.obj) : error LNK2019: 无法解析的外部符号 __imp__SetEnvironment
VariableA@8,该符号在函数 ___crtsetenv 中被引用
a.exe : fatal error LNK1120: 86 个无法解析的外部命令
到底是怎么回事啊!哪个高人来帮帮我!!!!!!!!!!谢谢!!!!!!!!!!!


mvp5941740 于 2010-04-04 09:41:32发表:
好像链接有问题,只能生成.obj
wangyu 于 2010-04-03 21:39:02发表:
你在每个cout结束时加个endl试试,比如
我实在没发现什么问题,cl /EHsc a.cpp没用过,我用的是g++
cout<<"This"<<"is"<