标签:
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.
start your Intel cmd window from “start -> Intel Parallel Studio XXX -> click the environment your need.”
cd X:\your\boost\root
bootstrap.bat
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.
...
.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 ;
....
Boost with Intel compiler support is quit good and valuable to use! enjoy it!!
[boost] build boost with intel compiler 16.0.XXX
标签:
原文地址:http://blog.csdn.net/bendanban/article/details/50182999