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@lists.boost.org>:

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 for Windows 10

 


_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users