This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
mingw32 and winsocks
- To: <cygwin at sourceware dot cygnus dot com>
- Subject: mingw32 and winsocks
- From: Marcel Mojžiš <marcel at shadow dot sk>
- Date: Thu, 14 Oct 1999 07:56:10 +0200
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