您如何在 Windows 上构建 x64 Boost 库?

问题描述:

我已经多次构建 x86 Boost 库,但我似乎无法构建 x64 库.我启动Visual Studio 2005 x64 Cross Tools Command Prompt"并运行我通常的构建:

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:uild install

但它仍然生成 x86 .lib 文件(我用 dumpbin/headers 验证了这一点).我做错了什么?

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

需要添加address-model=64参数.

看例如此处.