|
WindowsBorland C++Borland's command-line C++ compiler (BC++) is a free download, but it is also part of Borland's professional C++Builder IDE. Building wxWidgets with BC++ is done from the command line, using flags to the compiler to specify the library build configuration. The BC++ makefile is in the build\msw directory. From there, invoke the BC++ compiler using a command such as the following, which demonstrates how to toggle all of the major build options: make -f makefile.bcc UNICODE=0 SHARED=0 BUILD=release MONOLITHIC=0 The compiled library files are placed into the lib directory under your wxWidgets directory. Two directories are created: bcc_dll and bcc_lib, for the shared and static builds, respectively. To remove the object files and libraries, append the target clean to the same command line. However, be aware that this won't clean up the copy of setup.h that is placed under the bcc_lib and bcc_dll directories, so if you make any edits to include\wx\msw\setup.h, delete the bcc_lib or bcc_dll directories yourself before recompiling. Compiling a wxWidgets Sample ProgramIf you change into one of the sample program directories, you will see a makefile for BC++ called makefile.bcc. The sample programs are built using the same command and switches as the library itself and are designed to look within the wxWidgets tree for the include and library files in their default locations. Be sure that you specify flags for a configuration of the library that has been built, or the sample will fail to link. That is, if you have only built a Unicode static release version of wxWidgets, use the same build options for the sample. For example: cd samples\widgets make -f makefile.bcc UNICODE=1 SHARED=0 BUILD=release MONOLITHIC=0 bcc_mswd\widgets.exe As with the library makefile, you can clean a sample by appending the clean target, for example: make -f makefile.bcc UNICODE=0 SHARED=0 BUILD=debug clean |
|