今天在cygwin下编译一个linux项目时报了类似下面的错误: 代码语言:javascript 复制 server.cpp:20:error:aggregate`addrinfo hints' has incomplete type and cannot be defined server.cpp:25: error:`AI_PASSIVE' was not declaredinthisscope server.cpp:27:error:`getaddrinfo' was not declared in this scope...