Re: [xml] win32 getaddrinfo
- From: Michael Stahl <Michael Stahl Sun com>
- To: xml gnome org
- Subject: Re: [xml] win32 getaddrinfo
- Date: Wed, 02 Apr 2008 10:34:07 +0200
Rob Richards wrote:
Michael Stahl wrote:
What are you compiling with? The use of getaddrinfo actually came about
due to an issue with win98.
Daniel Veillard wrote:
On Tue, Apr 01, 2008 at 10:23:56AM +0200, Michael Stahl wrote:
the question is how do you detect that
+ #include <Wspiapi.h> /* for getaddrinfo, freeaddrinfo */
is actually available ? What about older version, WinCE ...
Roumen Petrov wrote:
to quote the msdn documentation:
The freeaddrinfo function was added to the Ws2_32.dll on Windows XP and
When the Wspiapi.h include file is added, the freeaddrinfo function is
defined to the WspiapiFreeAddrInfo inline function in the Wspiapi.h file.
I guess this need some expert review (I'm not one for any Win stuff !)
me neither, i just quote msdn :)
Declared in Ws2tcpip.h on Windows Server 2008, Windows Vista, Windows
Server 2003, and Windows XP.
Declared in Ws2tcpip.h on Windows 2000, Windows NT, and Windows Me/98/95;
so, it says nothing about wince, but everything else from msft seems to
I'm curious to know how HAVE_GETADDRINFO ended up getting defined.
from a quick grep, this seems to be defined in include/wsockcompat.h
that should be no surprise, as getaddrinfo is (afaik) actually defined in
Ws2_32.dll on my build box; the error i had originally occured when _linking_.
however, that dll is only available on NT 5.1 (XP) or newer.
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for
not that i have any clue about the setup, i just type "build" and fix what
actually i'm compiling on a newer version of NT, let me see, it says:
Windows Server 2003 R2
but the result should run on win 2000 as well, which does not have the
Ws2_32.dll; according to msdn "Wspiapi.h" should work in that case as
well. hmm, maybe i should test if it actually runs, if i can find a win
2000 box around here...
"Good judgement comes from experience;
experience comes from bad judgement." -- Fred Brooks
] [Thread Prev