This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Win32s/mingw32
- To: Gunther Ebert <gunther dot ebert at ixos-leipzig dot de>, gnu-win32 at cygnus dot com
- Subject: Re: Win32s/mingw32
- From: Peter Dalgaard BSA <p dot dalgaard at biostat dot ku dot dk>
- Date: 23 Apr 1998 11:09:18 +0200
- References: <x2ogxthjec.fsf@blueberry.kubism.ku.dk><353EE914.2905@ixos-leipzig.de>
Gunther Ebert <gunther.ebert@ixos-leipzig.de> writes:
>
> Hi,
>
> win32s doesn't support Win32 console programs. GUI programs that
> were built with the mingw32 compiler should work fine if they don't
> use anything that Win32s doesn't support (like multiple threads,
> console). Look into the Win32 API docs to see which Win32 functions
> are supported by Win32s and which are not.
> I don't believe that the mingw32 compiler produces a wrong exe format,
> the programs do even run under Windows95 :-)
>
> Gunther
That's what I though, but:
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
MessageBox (NULL, "Hello Win32", "First App", MB_OK);
return 0;
}
compiles, links and runs under W32, but gives an Invalid Format +
"error 21" under win32s. Same thing compiled with RSXNT runs on both
platforms. What gives?
Hm. Has anyone tried this with a newer set of libraries/binutils than
mine (I used the linux crosscompiler from Werner Koch)?
Here's another clue:
the RSXNT executable runs under WINE on Linux, but the mingw32 one
dies with
No handler for Win32 routine CRTDLL.107: _fpreset (called from 00401055)
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".