Using wxWidgets with Gnu-Win32 (older versions)

This is how to get wxWidgets and Gnu-Win32 cooperating, so you can compile a free multiplatform framework with a free Windows 95/NT compiler.

See also the Gnu-Win32 Web page.

Colin Peters has his own Gnu-Win32 web site which has useful extra information, including a package Ming32 (Minimalist Gnu-Win32) which does without the Cygnus support files (and doesn't fall under the GPL). Other things of interest on this site include cross-compilation files for developing Win32 program on UNIX, and a pointer to the resource compiler tools rcl.exe and cvtres.exe.


wxWidgets 1.67 and Gnu-Win32 b18

wxWidgets 1.67 supports Gnu-Win32 with less patching of the compiler than with previous versions of both of these packages. wxWidgets contains extra include files in include/msw/gnuwin32.

Thanks are due to Keith Garry Boyce (garp@opustel.com) and Cygnus for making it all possible.

Here are the steps required:

NEW!! As of September 11th 1997, there is a changed procedure for getting wxWidgets compiled with Gnu-Win32. The previous method, using cvtres.exe, didn't work on NT, so now we will use the same rcl.exe plus a program called rsrc.exe to bind the .res file to the executable. These files are from the DJGPP C compiler, and the method works on both Windows 95 and Windows NT. They come originally from the file rsxdj131.zip in ftp://sunsite.doc.ic.ac.uk/packages/simtelnet/gnu/djgpp/v2tk/. Thanks to Joern Eggers (eggers@landsh.de) who supplied the information, and also warns that rcl.exe only works well when full paths are supplied: I haven't been able to verify that the makefiles work on NT but they work on Windows 95.

The instructions that follow have been modified accordingly.

I haven't yet tried the debugger but advice on that should follow (contributed notes welcome!)

Gotchas are, as far as I know, the same as the ones mentioned below.


wxWidgets 1.66E/F and Gnu-Win32 b17

These are the old instructions for previous versions of both packages.

As of Beta 17 of Cygnus Gnu-Win32 and wxWidgets 1.66E, it is possible to use Gnu-Win32 to compile wxWidgets, thanks to Keith Garry Boyce (garp@opustel.com) and others.

Gotchas: