|
Boost Users : |
Subject: Re: [Boost-users] Toolset version for Visual Studio 2017 15.6.3
From: degski (degski_at_[hidden])
Date: 2018-04-08 12:45:28
On 7 April 2018 at 22:17, Chris Stankevitz via Boost-users <
boost-users_at_[hidden]> wrote:
> What version should I pass to b2 --toolset=msvc-x.y for "Visual Studio
> 2017 15.6.3"?
>
I use the following project-config.jam file:
====================================
import option ;
using msvc : : :
<cxxflags>-DBOOST_NO_ANSI_APIS
<cxxflags>-DBOOST_USE_WINAPI_VERSION=0x0A00
<cxxflags>-DBOOST_USE_WINDOWS_H=1
<cxxflags>-D_WIN32_WINNT=0x0A00
<cxxflags>-D_MT
<cxxflags>-D_WIN32
<cxxflags>-DNOMINMAX
<cxxflags>-DWIN32_LEAN_AND_MEAN
;
option.set keep-going : false ;
====================================
The above compiles Boost for use on Win10 (See [1] and [2]), without
specifically specifying the VS version.
You could replace the line using msvc : : : with using msvc : version : :
. This should be the VS version number (i.e. currently something with 15
(latest is 15.6.5)), so I guess 15.6 should do here (i.e.: using msvc :
15.6 : : ), but I'm not sure you can ignore the second 5 (in this case),
maybe someone else can confirm or correct.
degski
[1]
https://www.boost.org/doc/libs/1_60_0/libs/log/doc/html/log/installation/config.html
[2] https://msdn.microsoft.com/en-us/library/6sehtctf.aspx
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net