Cannot build Boost with Visual Studio 2017

2019-09-14 16:19发布

问题:

I downloaded Boost 1.63.0 and tried building it with my newly installed Visual Studio 2017 but there is no way it works! It compiles with the Visual Studio 2015 compiler instead.

Let me be more clear. I have both Visual Studio 2015 Update 3 and Visual Studio 2017 installed in my laptop. I open a command prompt with the environment set for the 2017 compiler (which is version 15.0).

Then I execute:

b2 --layout=versioned --with-chrono

but it uses version 14.0 (toolset=msvc-14.0) instead of version 15.0...

Thanks! Juan Dent

标签: boost