您如何在 Windows 上构建 x64 Boost 库? [英] How do you build the x64 Boost libraries on Windows?

查看:27
本文介绍了您如何在 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参数.

看例如此处.

这篇关于您如何在 Windows 上构建 x64 Boost 库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆