英特尔编译器构建boost库 [英] Building Boost Libraries With Intel Compiler

查看:366
本文介绍了英特尔编译器构建boost库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

除了Visual Studio 2012之外,我还在32位Windows 7机器上安装了Intel Parallel Studio XE 2013。我试图用Intel编译器构建Boost 1.53,遵循链接。我有这个错误:

I have installed Intel Parallel Studio XE 2013 in addition to Visual Studio 2012 on a 32bit Windows 7 machine. I have tried to build Boost 1.53 with Intel compiler by following the instructions in the link. I have this error:


.\boost / config / select_stdlib_config.hpp(18):灾难性错误:
无法打开源文件cstddef

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

有没有其他人有同样的问题?我欢迎任何建议,链接ICC的标准库以加快构建过程。
提前感谢。

Is there anyone else who had the same problem? I would welcome any advice to link standard libraries of ICC to boost build process. Thanks in advance.

推荐答案

经过密集搜索后,我终于找到了解决方案。如本链接,有两个修补程序可以应用于boost文件夹:

After an intensive search, finally I have found the solution. As explained in this link, there are two patches to apply to boost folder:


  1. <$ c $在[boost-source-directory] ​​\tools\build\v2\tools文件中的文件需要替换为链接

project-config.jam 需要替换为 intel-user-config.jam 链接和构建命令改为:

project-config.jam needs to be replaced by intel-user-config.jam given in the link and build command should be changed to:




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

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

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

Note that intel compiler version number may need to be modified according to your existing ICC installation in the file intel-user-config.jam.

这篇关于英特尔编译器构建boost库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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