Boost logo

Boost Users :

Subject: Re: [Boost-users] Building Boost 1.60 with VS2015 - 32 bit compiler is always selected
From: Vladimir Prus (vladimir.prus_at_[hidden])
Date: 2016-02-01 08:03:31


On 30-Jan-16 8:52 PM, Tiago Gehring wrote:
> Hi,
>
> I'm trying to build Boost 1.60 with Visual Studio 2015 Update 1 in 64-bit mode but it seems to be ignoring the
> address-model=64 parameter and always builds a 32-bit version (I called b2 from the VS2015 Native tools for x64 command
> prompt):
>
> --
> C:\Users\Tiago\code\boost_1_60_0>*b2 --toolset=msvc-14.0 variant=release link=static threading=multi address-model=64
> architecture=x86*
> Performing configuration checks
>
> *- 32-bit : yes*

Tiago,

this configuration checks figures the default address model of the compiler, not the
final address model that will be used. It possibly can be reworded a bit.

> - arm : no
> - mips1 : no
> - power : no
> - sparc : no
> - x86 : yes
> ....
>
> C:\Users\Tiago\code\boost_1_60_0>*cl*
> Microsoft (R) C/C++ Optimizing Compiler *Version 19.00.23506 for x64*
> Copyright (C) Microsoft Corporation. All rights reserved.

That does not matter much, since Boost.Build picks the exact compiler binary based on requested
version and parameters - it does not directly use 'cl' from PATH.

-- 
Vladimir Prus
http://vladimirprus.com

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