Boost logo

Boost Users :

Subject: Re: [Boost-users] Building Boost 1.62 With Visual Studio 2017 RC
From: csiga.biga_at_[hidden]
Date: 2016-11-24 05:05:04


The toolset of VS15 is not v150 but v141. This is because current plans are to keep binary compatibility with v14x toolsets. STL and CRT headers might change, the compiler will gain new C++ features, but everything built with v14x can be linked together like a happy family.

Feladó: Trueman, Chris
Elküldve: 2016. november 24., csütörtök 9:41
Címzett: boost-users_at_[hidden]
Tárgy: [Boost-users] Building Boost 1.62 With Visual Studio 2017 RC

I built both x86 and x64 flavours of Boost 1.62 with Visual Studio 2017 RC using this approach:

1. Boostrap from a shell configured using the x86 vcvars or x64 vcvars.
2. Update the project-config.jam to include:
using msvc : 15.0 : <path to x86 or x64 cl.exe>

I had to make a small change to the auto_link.hpp:

# elif defined (BOOST_MSVC) && (BOOST_MSVC < 1910)

                // vc14:

#  define BOOST_LIB_TOOLSET “vc140”

# elif defined (BOOST_MSVC)

                // vc15:

#  define BOOST_LIB_TOOLSET “vc150”

Issues for me:

• I failed to update the MSVC toolset detection in tools/build/src/tools/msvc.jam (hence fixing the version in project-config.jam)
• For the x64 build, passing address-model=64 on the b2 command line didn’t work so I had to delete bin.v2 and stage folders between the x86 and x64 builds.

Chris.

The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify the sender immediately and then destroy it.




D0F404988BCD406F926222A69133436E.png

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