This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

mingw32 and winsocks


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]