I would like to build boost 1.59.0 using the Visual Studio 2015 (Community). I followed the documentation and this question. Specifically, I did:
- Download boost 1.59.0 from http://www.boost.org/
- Extract files (e.g. “C:\some_dir\boost_1_59_0”)
- Open VS2015 x64 Native Tools Command prompt.
- check compiler version with
where cl
with resultC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\cl.exe
- change into directory boost_1_59_0
- call
bootstrap.bat
no errors are reported - call
b2 toolset=msvc-14.0 address-model=64 --with-python
as part of the output it will happily report- 32 bit: yes
When I try to build libs\python\example\tutorial
it again reports - 32 bit: yes
and results in the error python34.lib(python34.dll) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
. I interpret this as: the python dll is x64 (as installed) but my target is 32 bit.
Any hints would be greatly appreciated.