使用Winsock时出现错误 [Error] aggregate 'CreateSocket()::addrinfo hints' has incomplete type and cannot be defined
加入头文件
#include "ws2tcpip.h"
重新编译即可。
使用Winsock时出现错误 [Error] aggregate 'CreateSocket()::addrinfo hints' has incomplete type and cannot be defined
加入头文件
#include "ws2tcpip.h"
重新编译即可。