I have a C program that uses getaddrinfo(). It works as expected on Linux and Mac OS X.
getaddrinfo()
I\'m in the middle of porting it to Windows.
When I comp
Supposedly the proper way to fix this is:
#define WINVER WindowsXP
Or perhaps more sensibly adding -DWINVER=WindowsXP to your CPPFLAGS.
-DWINVER=WindowsXP
CPPFLAGS
Ref: http://mingw.5.n7.nabble.com/Undefined-reference-to-getaddrinfo-td5694.html
Note: didn’t work for me however.