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

被折叠的 条评论
为什么被折叠?



