How do I build x64 binaries with Boost source?
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 Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
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 https://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org https://lists.boost.org/mailman/listinfo.cgi/boost-users
On 13/06/2017 06:13, Osman Zakir wrote:
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.]
This is focused on a different issue, but this is how I build it: https://stackoverflow.com/a/42408982/43534
participants (3)
-
Gavin Lambert
-
Osman Zakir
-
Svante Karlsson