Search code examples
c++boostbuildicc

Building boost with Intel C++ Composer XE 2013


I have installed Intel C++ Composer XE 2013, and I'm trying to build boost (1_61_0) with it (on windows 8). I followed the steps on the official website here and modified the files as suggested on the related topic here (also modifying 12.0 to 13.0 in the intel-user-config.jam, and going to src instead of v2 folder). The command b2 --user-config=intel-user-config.jam --toolset=intel seemed to work properly.

However, my build.bat still does not work (so probably I did not build it properly):

@echo off  
set currentdir=%cd%  
@call "C:\Program Files (x86)\Intel\Composer XE 2013\bin\iclvars.bat" ia32  
icl /fast HelloWorld.cpp  
pause 

The error message being related to boost:

catastrophic error: cannot open source file "boost/math/distributions/normal.hpp"

Do I need to do something else in my .cpp file in order to use boost? Or did I just not installed it properly? Maybe it's my version of boost? I'm very new to C++, compilers, etc. I have been trying to figure something out to make boost work for days and I am still unable to use it. I have tried what was suggested on other topics but without success. I don't even know where the problem is.

Thanks in advance


Solution

  • icl /I "C:\boost_1_61_0" /fast HelloWorld.cpp
    

    solves the problem. Thanks