Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building Boost Libraries With Intel Compiler

I have installed Intel Parallel Studio XE 2013 in addition to Visual Studio 2012 on a 32bit Windows 7 machine. I have tried to build Boost 1.53 with Intel compiler by following the instructions in the link. I have this error:

.\boost/config/select_stdlib_config.hpp(18): catastrophic error: cannot open source file "cstddef"

Is there anyone else who had the same problem? I would welcome any advice to link standard libraries of ICC to boost build process. Thanks in advance.

like image 594
fatihk Avatar asked Jan 12 '23 00:01

fatihk


2 Answers

After an intensive search, finally I have found the solution. As explained in this link, there are two patches to apply to boost folder:

  1. intel-win.jam file in [boost-source-directory]\tools\build\v2\tools needs to be replaced by the file given in the link.

  2. project-config.jam needs to be replaced by intel-user-config.jam given in the link and build command should be changed to:

b2 --user-config=intel-user-config.jam --toolset=intel

Note that intel compiler version number may need to be modified according to your existing ICC installation in the file intel-user-config.jam.

like image 99
fatihk Avatar answered Jan 20 '23 16:01

fatihk


Run "./bootstrap.sh --with-toolset=intel-linux" and "b2 install" will use intel-linux.compile.c++ (boost_1_64_0).

like image 41
fghoussen Avatar answered Jan 20 '23 17:01

fghoussen