c++visual-studio-2005boost64-bitboost-build

How do you build the x64 Boost libraries on Windows?


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 build:

bjam --toolset=msvc --build-type=complete --build-dir=c:\build install

But it still produces x86 .lib files (I verified this with dumpbin /headers). What am I doing wrong?


Solution

  • You need to add the address-model=64 parameter.

    Look e.g. here.