From mboxrd@z Thu Jan 1 00:00:00 1970 From: "THORMODSEN, ARNE D (HP-Corvallis, ex1)" To: cygwin@sourceware.cygnus.com Subject: new user question - Cygwin and Mingw32 compatibility? Date: Tue, 09 Mar 1999 13:40:00 -0000 Message-id: X-SW-Source: 1999-03/msg00296.html This is a more compact version of a question I sent out awhile back. It there some basic incompatibility between using windows sockets via the cygwin includes and console IO via mingw32? The small example program below will compile with gcc, linking with wsock32 and msvcrt, but core dumps with a STATUS_STACK_OVERFLOW when the dlls are loading, before it even runs. I've found several hints as to what might be the problem in the mail archives, but nothing specific to this. A cygcheck on the binary shows both msvcrt.dll and wsock32.dll, which makes sense. But by trial and error I've found that these guys seem to collide if both are loaded. Is this simply a basic incompatibility, or what? Thanks much, --arne Arne Thormodsen // donoth.c // // Simplest case for error // Does nothing #define Win32_Winsock #include #include #include #include main(argc,argv) int argc; char *argv[]; { WSADATA *data; int i,j; data=malloc(sizeof(WSADATA)); i = WSAStartup(MAKEWORD(1,1),data); j=_kbhit(); WSACleanup(); free(data); } -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: "THORMODSEN, ARNE D (HP-Corvallis, ex1)" To: cygwin@sourceware.cygnus.com Subject: new user question - Cygwin and Mingw32 compatibility? Date: Wed, 31 Mar 1999 19:45:00 -0000 Message-ID: X-SW-Source: 1999-03n/msg00296.html Message-ID: <19990331194500.lU4gDQMbuL6ublX6BzDune7npCyP3-RP8KMKeyMwWPU@z> This is a more compact version of a question I sent out awhile back. It there some basic incompatibility between using windows sockets via the cygwin includes and console IO via mingw32? The small example program below will compile with gcc, linking with wsock32 and msvcrt, but core dumps with a STATUS_STACK_OVERFLOW when the dlls are loading, before it even runs. I've found several hints as to what might be the problem in the mail archives, but nothing specific to this. A cygcheck on the binary shows both msvcrt.dll and wsock32.dll, which makes sense. But by trial and error I've found that these guys seem to collide if both are loaded. Is this simply a basic incompatibility, or what? Thanks much, --arne Arne Thormodsen // donoth.c // // Simplest case for error // Does nothing #define Win32_Winsock #include #include #include #include main(argc,argv) int argc; char *argv[]; { WSADATA *data; int i,j; data=malloc(sizeof(WSADATA)); i = WSAStartup(MAKEWORD(1,1),data); j=_kbhit(); WSACleanup(); free(data); } -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com