致命错误:使用llvm时找不到“ wchar.h”文件(在Mac Mojave上)

时间:2019-06-13 14:49:03

标签: c++ mpi

我在Mac上使用mpi时遇到问题 作为大学项目,我用c ++编写了一个简单的mpi代码。我已经用brew安装了llvm。 当我想使用mpicc编译代码时,它显示了一个错误:

>In file included from main.cc:4:
>In file included from >/usr/local/opt/llvm/bin/../include/c++/v1/iostream:38:
>In file included from >/usr/local/opt/llvm/bin/../include/c++/v1/ios:215:
>In file included from >/usr/local/opt/llvm/bin/../include/c++/v1/iosfwd:96:
>/usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:119:15: fatal error: 
>     'wchar.h' file not found
> `#include_next <wchar.h>`

>1 error generated

我尝试重新安装我的gcc,xcode甚至llvm。我已经尝试了所有可能的答案,但找不到任何答案。 有帮助吗?

0 个答案:

没有答案