C
#include <WinSock2.h> #include <WS2tcpip.h> #include <stdio.h> #pragma comment(lib,"Ws2_32.lib") int main(){ return 0; }
运行获得错误列表
'socket.exe' (Win32): Loaded 'G:\std\c++\basic\socket\Debug\socket.exe'. Symbols loaded.
'socket.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file.
'socket.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file.
'socket.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Cannot find or open the PDB file.
'socket.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr120d.dll'. Cannot find or open the PDB file.
The program '[3848] socket.exe' has exited with code 0 (0x0).
很少做win编程,C/C++接触的也不多,如果是低级错误,请勿喷
cite
参考msdn的做法