How to compile C++ boost library with Intel C++ compiler

本文介绍如何使用Intel C++ Compiler配置环境变量并编译Boost库。首先从Boost官网下载源文件,然后将文件解压到指定目录。接着通过运行Intel编译器自带的批处理文件设置环境变量。最后遵循Boost安装手册指示完成Boost库的编译过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. Download the source file of boost from www.boost.org; install intel c++ compiler

2. Extract it into a directory as you like; say 

3.  configure the intel compiler environment variables

1) open a command terminal;

2) run the batch file compilervars, (in Windows, compilervars.bat, in Linux compilervars.sh and compilervars.csh) as intel_installation_dir/compilervars.bat -ia32;

3) do as the boost installation manual instructs(it can be found at index.html in the boost directory);

Note: step 3) must be done in the same terminal as step 2) since the set environment variables only has effect on the following commands in the same terminal; otherwise, in Windows, a small window would consistently pops up, saying files with some format cannot opened.

4. Up to now, the intel compiler should be starting the compilation boost library from the source code. After the compilation finishes, we can copy the produced libraries to the existing boost library which may be compiled by visual studio compiler at some time before. This can save us from creating another separate directory and setting another system environment variable.

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值