搜尋

首頁  >  問答  >  主體

c++ - win32系统下 用winsocket2 加载 提示一堆文件找不到

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的做法

高洛峰高洛峰2804 天前611

全部回覆(1)我來回復

  • PHP中文网

    PHP中文网2017-04-17 11:49:46

    雷雷

    回覆
    0
  • 取消回覆