Introduction
There is few information about what to compile boost with Intel compiler. This article are 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-and 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.0Variant=ReleaseLink=Static threading=Multi Runtime-link=Static -A - QB2.EXE toolset=Intel-16.0Variant=DebugLink=Static threading=Multi Runtime-link=Static -A - QB2.EXE toolset=Intel-16.0Variant=ReleaseLink=Static threading=Multi Runtime-link=Shared -A - QB2.EXE toolset=Intel-16.0Variant=DebugLink=Static threading=Multi Runtime-link=Shared -A - Q
For 64-bit: (please execute them separately)
B2.EXE address-model= -Toolset=Intel-16.0Variant=ReleaseLink=Static threading=Multi Runtime-link=Static -A - QB2.EXE address-model= -Toolset=Intel-16.0Variant=DebugLink=Static threading=Multi Runtime-link=Static -A - QB2.EXE address-model= -Toolset=Intel-16.0Variant=ReleaseLink=Static threading=Multi Runtime-link=Shared -A - QB2.EXE address-model= -Toolset=Intel-16.0Variant=DebugLink=Static threading=Multi Runtime-link=Shared -A - Q
Note : Use your own version of Intel compiler.
If you encounter a 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 the Intel compiler support are quit good and valuable to use! Enjoy it!!
[boost] Build boost with Intel compiler 16.0.XXX