Building Boost with Intel® C++ Compiler 16.0

Published: 09/30/2014  

Last Updated: 06/21/2016

Introduction:

This document explains how to build Boost using the Intel® C++ Compiler 16.0.0. From the Boost web site:

Boost provides free peer-reviewed portable C++ source libraries.

We emphasize libraries that work well with the C++ Standard Library. Boost libraries are intended to be widely useful, and usable across a broad spectrum of applications. The Boost license encourages both commercial and non-commercial use.

We aim to establish "existing practice" and provide reference implementations so that Boost libraries are suitable for eventual standardization. Ten Boost libraries are included in the C++ Standards Committee's Library Technical Report (TR1) and in the new C++11 Standard. C++11 also includes several more Boost libraries in addition to those from TR1. More Boost libraries are proposed for standardization in C++17.

Follow the Getting Started Guide† which answers some open questions for details on how to download and install Boost.

Version:

The version of Boost used in this document is 1.61.0.

Obtaining Source Code: 

The Boost source code was downloaded from http://sourceforge.net/projects/boost/files/

Configuration Set Up and Bulld Process: 

Linux* and OS X*

  1. Run "source <compiler root>/bin/compilervars.sh {ia32 OR intel64}" or
    "source <compiler root>/bin/compilervars.csh {ia32 OR intel64}"
  2. cd <boost root>/tools/build
  3. ./bootstrap.sh
  4. ./b2 install --prefix=<Boost.Build install dir>
  5. Add <Boost.Build install dir>/bin to your PATH
  6. cd <boost root>
  7. For 32-bit: b2 --build-dir=<Boost object directory> toolset=intel stage
    For 64-bit: b2 --build-dir=<Boost object directory> address-model=64 toolset=intel stage

Windows*

  1. Run "<compiler root>\bin\compilervars.bat {ia32 OR intel64} {vs2010 OR vs2012 OR vs2013}"
  2. cd <boost root>\tools\build
  3. bootstrap.bat
  4. Set the following environment variables:
    1. set PYTHON_VERSION
      2. set PYTHON_INCLUDE
      3. set PYTHON_LIB
  5. b2 install --prefix=<Boost.Build install dir> toolset=intel-16.0-vcXX cxxflags=/Qstd=c++11 -j4
  6. Add <Boost.Build install dir>\bin to your PATH
  7. There is an issue with Boost* 1.56.0 and above that prevents toolset=intel from working properly. For that version of Boost, use the following values for toolset (including quotes) in place of intel in the provided command lines:

    For Microsoft Visual Studio 2010*: "intel-16.0-vc10"
    For Microsoft Visual Studio 2012*: "intel-16.0-vc11"
    For Microsoft Visual Studio 2013*: "intel-16.0-vc12"


    For 32-bit: b2 --build-dir=<Boost object directory> toolset=intel --build-type=complete stage
    For 64-bit: b2 --build-dir=<Boost object directory> address-model=64 toolset=intel --build-type=complete stage

 

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.