How do you build the x64 Boost libraries on Windows?

Ferruccio picture Ferruccio · Nov 19, 2008 · Viewed 52.4k times · Source

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?

Answer

macbirdie picture macbirdie · Nov 19, 2008

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

Look e.g. here.