2008/5/15, Naveen Shivanna wrote:
> I am using c-ares 1.5.1 version, build on windows. In ares_process_fd for
> the 3rd parameter i am passing ARES_SOCKET_BAD, when i compiled, it is
> giving ARES_SOCKET_BAD undeclared identifier.
You should be using something like the following lines in your source
code before including <ares.h>
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <ares.h>
-- -=[Yang]=-Received on 2008-05-15