Boost logo

Boost Users :

Subject: Re: [Boost-users] How do I build x64 binaries with Boost source?
From: Svante Karlsson (svante.karlsson_at_[hidden])
Date: 2017-06-12 20:07:13


This is how I build windows x64 binaries

set VISUALSTUDIO_VERSION_MAJOR=14
"C:\Program Files (x86)\Microsoft Visual Studio
%VISUALSTUDIO_VERSION_MAJOR%.0\VC\vcvarsall.bat" amd64

call bootstrap.bat
.\b2.exe -j8 -toolset=msvc-%VisualStudioVersion% variant=release,debug
link=static threading=multi runtime-link=shared address-model=64
architecture=x86 --stagedir=stage\lib\x64 stage -s
ZLIB_SOURCE=%CD%\..\zlib headers log_setup log date_time timer thread
system program_options filesystem regex chrono iostreams

2017-06-12 20:13 GMT+02:00 Osman Zakir via Boost-users <
boost-users_at_[hidden]>:

> Hi,
>
>
>
> How do I specify that I want to build 64-bit binaries when I run bootstrap
> and then invoke b2? I had a linker error saying,
> “1>libboost_thread-vc141-mt-gd-1_64.lib(thread.obj) : fatal error
> LNK1112: module machine type 'X86' conflicts with target machine type
> 'x64'” when I tried to build an ISAPI extension DLL with Wt (just a simple
> app using the same code as in the “Hello world” example). [Note: I’m just
> trying out the wtispai.lib/wisapid.lib connector libraries to see how to
> use them.]
>
>
>
> Any help would be appreciated. Thanks in advance.
>
>
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
> Windows 10
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> https://lists.boost.org/mailman/listinfo.cgi/boost-users
>



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