for wxWidgets work,and it is the tool of choice for most wxWidgets developers
Borland C++ (BC++) is a fast compiler, but the linker has trouble with
wxWidgets executable sizes, and the compiler is not actively supported by
Borland. In addition, there is no good free debugger for BC++. You can down-
load Borland C++ from
GCC is available in two forms on Windows: MinGW and Cygwin. MinGW
makes use of the Windows run-time libraries and so is a better choice for
“native” Windows applications. MinGW has an accompanying Unix-like shell,
MSYS, which you will need if you want to use the
method of compil-
ing. MinGW can also compile wxWidgets and applications from the Windows
command prompt using its own make tool and
can be used on its own or with an IDE such as Dev-C++ or DialogBlocks.
Download it from
or install it from the CD-ROM.
Unfortunately, GCC is a slow compiler that creates huge libraries and exe-
cutables, and its GDB debugger (or IDE equivalents) cannot compare with the
convenience of VC++’s debugger.
Digital Mars C++ also works with wxWidgets and is quite fast; the IDE
and debugger need to be purchased. Download Digital Mars C++ from
or copy it from the CD-ROM.
OpenWatcom C++ does not implement all C++ standards, but it works
with wxWidgets and can be downloaded from
copied from the CD-ROM.
CodeWarrior will also work with wxWidgets and provide a consistent
environment for those using CodeWarrior on MacOS.
See also Appendix E, “Third-Party Tools for wxWidgets,” for other IDEs
All the compilers mentioned here can be “driven” by DialogBlocks (on the
accompanying CD-ROM), so you can design your dialogs and other user inter-
face elements in addition to building and running your application. See
Appendix C for more on DialogBlocks.
Tools on Linux and Mac OS X
On Linux, GCC is usually installed by default. However, you can use it in a
number of different ways. You can use command-line tools (
and GDB for debugging), or you can use an IDE such as KDevelop, as
described in this chapter (though you’ll still compile the wxWidgets libraries
from the command line). You also can use the command line to compile and
then use GDB within Emacs to step through your application, or you can use
the graphical debugger DDD.
On Mac OS X, you can download the GCC-based development tools from
Apple’s web site after registering as an Apple Developer Connection (ADC)
member. You can use
in exactly the same way as on Linux,
but you can also use Apple’s Xcode IDE to compile applications, again
Installing wxWidgets Appendix A