MacOS Mojave 10.14 下使用 brew 安装的 gcc 5 (5.5.0_2) 报错 wchar.h No such file or directory 的解决方案
本文共 580 字,预计阅读时间 3 分钟。
报错内容
1 2 3 4 5 6 7 8
$ gcc-5 -o a shit.cpp In file included from /usr/local/Cellar/gcc@5/5.5.0_2/include/c++/5.5.0/bits/postypes.h:40:0, from /usr/local/Cellar/gcc@5/5.5.0_2/include/c++/5.5.0/iosfwd:40, from /usr/local/Cellar/gcc@5/5.5.0_2/include/c++/5.5.0/ios:38, from /usr/local/Cellar/gcc@5/5.5.0_2/include/c++/5.5.0/ostream:38, from /usr/local/Cellar/gcc@5/5.5.0_2/include/c++/5.5.0/iostream:39, from shit.cpp:1: /usr/local/Cellar/gcc@5/5.5.0_2/include/c++/5.5.0/cwchar:44:19: fatal error: wchar.h: No such file or directory