c++ - 使用英特尔编译器构建 boost 库

标签 c++ boost compiler-construction build icc

除了 Visual Studio 2012 之外,我还在一台 32 位 Windows 7 机器上安装了 Intel Parallel Studio XE 2013。我已尝试按照 link 中的说明使用 Intel 编译器构建 Boost 1.53。 .我有这个错误:

.\boost/config/select_stdlib_config.hpp(18): catastrophic error: cannot open source file "cstddef"

请问有遇到同样问题的吗?我欢迎任何链接 ICC 标准库以 boost 构建过程的建议。 提前致谢。

最佳答案

经过一番搜索,终于找到了解决办法。如本 link 中所述, 有两个补丁可以应用于 boost 文件夹:

    [boost-source-directory]\tools\build\v2\tools 中的
  1. intel-win.jam 文件需要替换为 link 中给出的文件.

  2. project-config.jam 需要替换为 link 中给出的 intel-user-config.jam构建命令应更改为:

b2 --user-config=intel-user-config.jam --toolset=intel

请注意,英特尔编译器版本号可能需要根据文件 intel-user-config.jam 中现有的 ICC 安装进行修改。

关于c++ - 使用英特尔编译器构建 boost 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22351863/

相关文章:

c++ - 为什么我的 CUDA 程序的初始执行时间比后续执行时间长?

c++ - 合并排序 k 列表 c++

javascript - 在 V8 中获取完整的 AST,惰性编译问题

c++ - 我是在用这个微不足道的方法调用转发类重新发明轮子吗?

c++ - Visual Studio 2015 - 用于确定要编译哪些项目的预构建事件

c++ - boost 矩阵动态大小扩展

c++ - 构建线程 boost 库

c++ - 查找所有在 Boost 中排序的

c++ - Eclipse CDT 和 PGI (Portland) C++ 编译器

c - 在 AssignOp 之后在 ROSE 编译器中插入赋值