[boost] build boost with intel compiler 16.0.XXX


Introduction


There are few information about how to compile boost with Intel compiler. This article is to describe a simple command steps to let you get a boost library with Intel compiler support.

Steps


step 1: start your Intel compiler cmd window


start your Intel cmd window from “start -> Intel Parallel Studio XXX -> click the environment your need.”

step 2: change the directory to boost root


cd X:\your\boost\root

step 3: compile b2


bootstrap.bat

step 4: compile your own boost


with one of the following command.
for 32-bit (please execute them separately)
b2.exe toolset=intel-16.0 variant=release link=static threading=multi runtime-link=static -a -q

b2.exe toolset=intel-16.0 variant=debug   link=static threading=multi runtime-link=static -a -q

b2.exe toolset=intel-16.0 variant=release link=static threading=multi runtime-link=shared -a -q

b2.exe toolset=intel-16.0 variant=debug   link=static threading=multi runtime-link=shared -a -q

for 64-bit: (please execute them separately)
b2.exe address-model=64 toolset=intel-16.0 variant=release link=static threading=multi runtime-link=static -a -q

b2.exe address-model=64 toolset=intel-16.0 variant=debug   link=static threading=multi runtime-link=static -a -q

b2.exe address-model=64 toolset=intel-16.0 variant=release link=static threading=multi runtime-link=shared -a -q

b2.exe address-model=64 toolset=intel-16.0 variant=debug   link=static threading=multi runtime-link=shared -a -q

Note : use your own version of intel compiler. if you encounter an error like : Intel compiler not found. following the steps below.

Append steps

  • open the file of “BOOST_ROOT\tools\build\src\tools\intel-win.jam”
  • scroll to the most bottom and edit them like the text below”
  • ...
    .intel-autodetect-versions = 16.0 15.0 14.0 13.0 12.0 ;
    .iclvars-12.0-supported-vcs = "10.0 9.0 8.0" ;
    .iclvars-12.1-supported-vcs = "10.0 9.0 8.0" ;
    .iclvars-13.0-supported-vcs = "11.0 10.0 9.0" ;
    .iclvars-14.0-supported-vcs = "12.0 11.0 10.0 9.0" ;
    .iclvars-15.0-supported-vcs = "12.0 11.0 10.0 9.0" ;
    .iclvars-16.0-supported-vcs = "13.0 12.0 11.0 10.0 9.0" ;
    .iclvars-version-alias-vc12 = vs2013 ;
    .iclvars-version-alias-vc11 = vs2012 ;
    .iclvars-version-alias-vc10 = vs2010 ;
    .iclvars-version-alias-vc9 = vs2008 ;
    .iclvars-version-alias-vc8 = vs2005 ;
    .icl-target-subdirectories = ia32 ia32_intel64 intel64 ;
    ....

    Conclusion


    Boost with Intel compiler support is quit good and valuable to use! enjoy it!!