include files
the main include file is "wx/wx.h"; this includes the most commonly
used modules of wxwidgets.
to save on compilation time, include only those header files relevant to the
source file. if you are using precompiled headers, you should include
the following section before any other includes:
// for compilers that support precompilation, includes "wx.h".
#include <wx/wxprec.h>
#ifdef __borlandc__
#pragma hdrstop
#endif
#ifndef wx_precomp
// include your minimal set of headers here, or wx.h
#include <wx/wx.h>
#endif
... now your other include files ...
the file "wx/wxprec.h" includes "wx/wx.h". although this incantation
may seem quirky, it is in fact the end result of a lot of experimentation,
and several windows compilers to use precompilation which is largely automatic for
compilers with necessary support. currently it is used for visual c++ (including
embedded visual c++), borland c++, open watcom c++, digital mars c++
and newer versions of gcc.
some compilers might need extra work from the application developer to set the
build environment up as necessary for the support.
|