c++ - Unknown compiler version while compiling Boost with MSVC 14.0 (VS 2015) -
i "unknown compiler version - please run configure tests , report results" while attempting compile boost library on computer.
have recent boost (as of date of post) - 1.58.0.
doesn't boost support msvc 14.0, yet? how "run configure tests"?
screenshots.
latest (at time of posting answer) boost 1.58 support msvc 14.0 preview latest ms compiler @ time of boost 1.58 release. now, latest version of visual studio 2015 rc isn't covered in boost 1.58 config file.
to stop boost 1.58 complaining unknown compiler version edit boost/config/compiler/visualc.hpp
, replace:
// last known , checked version 19.00.22129 (vc14 preview): #if (_msc_ver > 1800 && _msc_full_ver > 190022310)
with:
// last known , checked version 19.00.22816 (vc++ 2015 rc): #if (_msc_ver > 1800 && _msc_full_ver > 190022816)
which can find done in boost repo here upcoming boost 1.59 release.
update: visual studio 2015 rtm set to:
// last known , checked version 19.00.23026 (vc++ 2015): #if (_msc_ver > 1800 && _msc_full_ver > 190023026)
update2: visual studio 2015 update 1 set to:
// last known , checked version 19.00.23506 (vc++ 2015 update 1): #if (_msc_ver > 1800 && _msc_full_ver > 190023506)
also if have been running boost.build on toolset=msvc-14.0
delete c:\users\<name>\appdata\local\temp
following cached files:
b2_msvc_14.0_vcvarsall_x86.cmd b2_msvc_14.0_vcvarsall_x86_amd64.cmd b2_msvc_14.0_vcvarsall_x86_arm.cmd
more here.
update3 future reference, in visual studio tools command prompt run command cl /bv
see version numbers (the parameters case sensitive).
mine outputs following:
c:\program files (x86)\microsoft visual studio\preview\professional\vc\tools\msvc\14.11.25503\bin\hostx64\x64\cl.exe: version 19.11.25506.0 c:\program files (x86)\microsoft visual studio\preview\professional\vc\tools\msvc\14.11.25503\bin\hostx64\x64\c1.dll: version 19.11.25506.0 c:\program files (x86)\microsoft visual studio\preview\professional\vc\tools\msvc\14.11.25503\bin\hostx64\x64\c1xx.dll: version 19.11.25506.0 c:\program files (x86)\microsoft visual studio\preview\professional\vc\tools\msvc\14.11.25503\bin\hostx64\x64\c2.dll: version 19.11.25506.0 c:\program files (x86)\microsoft visual studio\preview\professional\vc\tools\msvc\14.11.25503\bin\hostx64\x64\link.exe: version 14.11.25506.0 c:\program files (x86)\microsoft visual studio\preview\professional\vc\tools\msvc\14.11.25503\bin\hostx64\x64\mspdb140.dll: version 14.11.25506.0 c:\program files (x86)\microsoft visual studio\preview\professional\vc\tools\msvc\14.11.25503\bin\hostx64\x64\1033\clui.dll: version 19.11.25506.0
from can deduce _msc_ver
1911 (from text "version 19.11") , _msc_full_ver
191125506.
Comments
Post a Comment