Is there any way to use getaddrinfo() and freeaddrinfo() and still be the program compatible with le
Posted
by Sam C.
on Stack Overflow
See other posts from Stack Overflow
or by Sam C.
Published on 2010-03-25T20:54:12Z
Indexed on
2010/03/25
21:03 UTC
Read the original article
Hit count: 401
Hi, in the Winsock2 library getaddrinfo()
and freeaddrinfo()
was only added in Windows XP and on. I know how to replace them in legacy systems, but a conditional use depending on the Windows version won't help.
The application won't start in 9x with a message saying that it was linked to a missing export in WS2_32.dll.
I'm using MinGW to compile and link the code and would like to keep using it. Maybe writing those functions by myself?
Thank you very much for everything.
© Stack Overflow or respective owner