Boost

From RAD Studio
Jump to: navigation, search

Go Up to Third Party Software Add-Ins


Boost is a set of C++ libraries that significantly expand the C++ programming language using template metaprogramming. RAD Studio allows you to install a subset of Boost that has been fully tested and preconfigured specifically for C++Builder.

Supported Versions, Compilers and Platforms

RAD Studio supports different versions of Boost depending on the compiler that you use to build your application:

Platform Compiler Boost Version

32-bit Windows

BCC32

1.39.0

BCC32C

1.55.0

64-bit Windows

BCC64

1.55.0

OS X

BCCOSX

1.39.0

Android

BCCAARM

1.53.0

Android Support

C++Builder supports Boost for Android mobile platforms through a third-party library package. You can download Boost for Android 1.53 using Tools > GetIt Package Manager.

For more information visit Boost for Android 1.53.

Note: Boost for Android is a third-party library package and is not developed nor maintained by Embarcadero. We do not provide technical support for third-party libraries.

Installing Boost

To install Boost do any of the following:

  • Select Tools > GetIt Package Manager and double-click the Boost package to install Boost using the GetIt Package Manager.
  • Open the following file on a web browser and follow the download link under "Boost Library for C++Builder Tokyo":
    C:\Program Files (x86)\Embarcadero\Studio\19.0\available_downloads_en.htm
  • If you obtained a media kit from Embarcadero, you can find the Boost installer in the media kit.

Including Boost in Your Applications

You can include header files of Boost as you would do for any other library. C++ applications automatically use the right version of Boost for the compiler that you use.

For example, to use minmax in an application that you build with BCC32:

#include <boost/algorithm/minmax.hpp>

Different versions of Boost may contain different header files or a different API. If you want to build your application using compilers that support different versions of Boost, you may need to use conditional compilation.

The Boost include paths are specified in the following environment variables in the IDE:

  • CG_BOOST_ROOT (BCC32, BCCOSX): C:\Program Files (x86)\Embarcadero\Studio\19.0\include\boost_1_39
  • CG_64_BOOST_ROOT (BCC32C, BCC64): C:\Program Files (x86)\Embarcadero\Studio\19.0\include\boost_1_55

These variables are defined on the Tools > Options > Environment Options > Environment Variables dialog box.

Boost Documentation

Follow the links below to access the online help for the versions of Boost that RAD Studio supports:

Uninstalling Boost

If you installed Boost using the GetIt Package Manager, use it to remove Boost:

  1. Open RAD Studio and select Tools > GetIt Package Manager to open the GetIt Package Manager Window.
  2. Locate the Boost entry. You can type "Boost" into the search box to filter out other packages from GetIt Package Manager.
  3. Click Uninstall on the Boost entry.

If you installed Boost using any other of the installation methods:

  1. Open the Windows Control Panel and choose Uninstall a program.
  2. Double-click Boost Libraries for C++Builder <version>. The Boost installer starts.
  3. On the Welcome page of the Boost installer, choose the Remove option and click Next.
  4. On the Ready to Uninstall page, click Next.

See Also

Samples