[boost] build boost with intel compiler 16.0.XXX

46 篇文章 0 订阅
17 篇文章 0 订阅

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!!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值