mingw32 and winsocks
Marcel
Marcel
Wed Oct 13 22:55:00 GMT 1999
Hi all,
I have a question about using winsocks with mingw32. I compiled libpq
frontend library using mingw32 (gcc 2.95). There was no problem with the
compilation still no program connected to my DB. I tried to debug it with
gdb but I wasn't very succesful - gdb always faild with "Invalid
operation..." message. Finally I discovered that gethostbyname function
didn't work - it always returned NULL.
So I wrote a short program ...
#include <stdio.h>
#include <windows.h>
void main() {
if (gethostbyname("www.microsoft.com") == NULL) {
printf("failed...");
}
}
...and it failed too.
Do you have an idea what's wrong ??
Thanks in advance
Marcel
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
More information about the Cygwin
mailing list