【问题标题】:Boost Libraries Support for MS VC++ 10.0提升对 MS VC++ 10.0 的库支持
【发布时间】:2009-12-20 08:39:11
【问题描述】:

朋友

我一直在使用 Microsoft Visual C++ 2010 Express 版本,还下载了适用于 Windows 的 Boost 库,我希望将 Boost 与 VC++ 链接,以便我可以在 VC++ 中运行涉及 Boost 库的程序。 请提供一些关于 Boost with VC++ 的意见

谢谢

【问题讨论】:

  • 真正的问题是什么?它应该简单地工作。你到底需要知道什么? (顺便说一句,你还没有 VC++ 2010 Express。有一个 2008 Express 和一个 VS2010 Beta(不是 Express 版)

标签: c++ boost


【解决方案1】:

只需按照这些说明Getting Started on Windows

【讨论】:

    【解决方案2】:

    现在您已下载整个库并将其解压缩到文件夹 c:\boost。

    1. 从“开始”菜单打开 Visual Studio 2010 命令行窗口,以便为您预先设置所有 VS2010 环境。
    2. 导航到 c:\boost
    3. 运行 bjam.exe,然后等待。 或者,您可以将以下 3 行保存到文件 build.bat 中(就像我一样)

      bjam.exe link=static runtime-link=static threading=multi --layout=versioned stage

      bjam.exe link=static runtime-link=shared threading=multi --layout=versioned stage

      bjam.exe link=shared runtime-link=shared threading=multi --layout=versioned stage 并运行 build.bat,构建完成后,所有的库都在 .\stage

    【讨论】:

      【解决方案3】:

      请注意,最新的 boost 主干还没有在 2010 年构建。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2017-12-22
        • 2014-06-11
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-10-06
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多