Fatal error C1027 while building Boost 1.49.0

I am trying to build Boost 1.49.0 using MSVC2010 and it fails with the following error:

file bin.v2\libs\math\build\msvc-10.0\release\link-static\runtime-link-static\threading-multi\assoc_laguerre.obj.rsp






compile-c-c++ bin.v2\libs\math\build\msvc-10.0\release\link-static\runtime-link-static\threading-multi\assoc_laguerre.obj

    call "C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 >nul
cl /Zm800 -nologo @"bin.v2\libs\math\build\msvc-10.0\release\link-static\runtime-link-static\threading-multi\assoc_laguerre.obj.rsp" 

c1xx : fatal error C1027: Inconsistent values for /Ym between creation and use of precompiled header


This is the first instance of this error, there are 995 instances of the same error in my log file before the build finishes.

Project-config.jam content:

import option ; 

using msvc ; 

option.set keep-going : false ; 

using python : 3.2 : C:\\Tools\\Python\\3.2.2 ;


And the build command I used is:

b2 --toolset=msvc-10.0 --build-type=complete stage -q -d+2 -sICU_PATH="C:\Tools\ICU\"


Any idea what is causing this?


source to share

1 answer

The error is explained here , and here is the one who had this problem while creating something else and his solution.

It changed its parameter /Zm

from /Zm1000

to /Zm500

(you have /Zm800

). I don't know if it helps you to change it to the same value, but you can try playing with it (this compiler flag description can be found here ).

You can use the command line argument cxxflags

to change the compiler flags (taken from here ).



All Articles