Boost.Geometry is a headers-only library. Users only need to include the library headers in their programs in order to be able to access definitions and algorithms provided by the Boost.Geometry library. No linking against any binaries is required.
Boost.Geometry is only dependant on headers-only Boost libraries. It does not introduce indirect dependencies on any binary libraries.
In order to be able to use Boost.Geometry, the only thing users need to do
is to download and/or install Boost and specify location to include directories,
include directives of this
scheme will work:
Boost.Geometry library has been successfully tested with the following compilers:
Boost.Geometry uses Boost.Build, a text-based system for developing and testing
software, to configure, build and execute unit tests and example programs.
The build configuration is provided as a collection of
For gcc, flag
-Wno-long-long can be used to surpress some
warnings originating from Boost.
The most convenient headerfile including all algorithms and strategies is
This is the main header of the Boost.Geometry library and it is recommended to include this file.
Alternatively, it is possible to include Boost.Geometry header files separately. However, this may be inconvenient as header files might be renamed or moved occasionaly in future.
Another often used header is
This includes definitions of all provided geometry types:
geometries.hpp is not included in the
geometry.hpp headerfile because users should be given
the liberty to use their own geometries and not the provided ones. However,
for the Boost.Geometry users who want to use the provided geometries it is
useful to include.
Users who have their own geometries and want to use algorithms from Boost.Geometry might include the files containing registration macro's, like:
The enumeration below is not exhaustive but can contain hints to improve the performance:
Both versions of MSVC, 2005 and 2008 (including Express Editions) can hang trying to resolve symbols and give IntelliSense suggestions while typing in a bracket or angle bracket. This is not directly related to Boost.Geometry, but is caused by problems with handling by this IDE large C++ code base with intensively used templates, such as Boost and Boost.Geometry. If this is inconvenient, IntelliSense can be turned off:
“(...)disabling IntelliSense in VC++. There is a file called
<VS8INSTALL>/VC/vcpackagesfolder. Renaming this file will disable Intellisense feature.”