现在的位置: 首页 > 综合 > 正文

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

2019年04月21日 ⁄ 综合 ⁄ 共 960字 ⁄ 字号 评论关闭

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.

抱歉!评论已关闭.