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:
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.
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 Berlin":
C:\Program Files (x86)\Embarcadero\Studio\18.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:
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\18.0\include\boost_1_39
- CG_64_BOOST_ROOT (BCC32C, BCC64):
C:\Program Files (x86)\Embarcadero\Studio\18.0\include\boost_1_55
These variables are defined on the Tools > Options > Environment Options > Environment Variables dialog box.
Follow the links below to access the online help for the versions of Boost that RAD Studio supports:
If you installed Boost using the GetIt Package Manager, use it to remove Boost:
- Open RAD Studio and select Tools > GetIt Package Manager to open the GetIt Package Manager Window.
- Locate the Boost entry. You can type "Boost" into the search box to filter out other packages from GetIt Package Manager.
- Click Uninstall on the Boost entry.
If you installed Boost using any other of the installation methods:
- Open the Windows Control Panel and choose Uninstall a program.
- Double-click Boost Libraries for C++Builder <version>. The Boost installer starts.
- On the Welcome page of the Boost installer, choose the Remove option and click Next.
- On the Ready to Uninstall page, click Next.
- RTL Boost Archive sample