英特尔编译器构建boost库 [英] Building Boost Libraries With Intel Compiler
问题描述
除了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:
-
<$ 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屋!