无法打开源文件"bits/c ++ config.h"; icpc错误 [英] Cannot open source file "bits/c++config.h" error with icpc
问题描述
我正在尝试使用icpc在64位计算机上编译程序.不幸的是,我收到错误消息catastrophic error: cannot open source file "bits/c++config.h"
.我从
I am trying to compile a program on a 64-bit machine with icpc. Unfortunately, I get an error message of catastrophic error: cannot open source file "bits/c++config.h"
. I have adopded some advice from here but with no success. Also, I do not forget to run source /opt/intel/bin/compilervars.sh intel64
before hand and I'm on Ubuntu 13.10 in case this is important.
推荐答案
首先,找到丢失的文件:
First, find the missing file:
find /usr -name c++config.h
(大多数情况下,头文件位于/usr 中.)然后,将其顶部目录添加到编译命令的include路径中,这样编译器将找到"bits/c ++ config" .h",使用 -I 选项.已经在SO,BTW上问了类似的问题:缺少包括"bits/c ++ config.h"的内容.在Ubuntu中32位上交叉编译64位程序时.
(Headers are in /usr, most of the time.) Then, add its top dir to the include path of your compilation command, so the compiler will find "bits/c++config.h", using the -I option. A similar question was already asked on SO, BTW: Missing include "bits/c++config.h" when cross compiling 64 bit program on 32 bit in Ubuntu.
这篇关于无法打开源文件"bits/c ++ config.h"; icpc错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!