|
From: George K. <xke...@ne...> - 2014-01-15 21:43:01
|
MinGW does not have <resolv.h> nor <arpa/nameser.h>. I am not sure how you got those files, but I suspect that someone copied them from a non-Windows system. Windows does not have <sys/socket.h>. It has <winsock2.h>. It has most of the same functions, like socket(), connect(), and so on, but there are some differences, like a new SOCKET type and closesocket(). If you have code that includes <sys/socket.h>, you need to make changes for Windows, and link with -lws2_32. Windows has gethostbyname() and getaddrinfo(), but there is no _res nor res_init(). --George Koehler |