How do you build the x64 Boost libraries on Windows?

后端 未结 4 1167
小蘑菇
小蘑菇 2020-12-23 13:53

I\'ve built the x86 Boost libraries many times, but I can\'t seem to build x64 libraries. I start the \"Visual Studio 2005 x64 Cross Tools Command Prompt\" and run my usual

4条回答
  •  悲哀的现实
    2020-12-23 14:21

    With b2 the command is:

    b2 --build-dir=build/x64 address-model=64 threading=multi --build-type=complete --stagedir=./stage/x64
    

    It will show default address-model: 32-bit at the beginning but will still build in 64-bit (how confusing).You should have the dlls created with names such as library-vc140-mt-x64-1_71.dll confirming it is 64-bit.

    source: Building Boost 32-bit and 64-bit libraries on Windows

提交回复
热议问题