Liam0205 / liam0205.github.io

Deployment of my weblog.
https://liam0205.github.io
35 stars 5 forks source link

解决升级 Mojave 后 g++ 找不到头文件的问题 | 始终 #275

Open Liam0205 opened 5 years ago

Liam0205 commented 5 years ago

https://liam.page/2019/01/18/fix-missing-headers-fatal-errors-after-upgraded-to-Mojave/

Mac 升级 Mojave (10.14) 之后,尝试编译以前编译通过的 C++ 项目,g++-6 提示找不到各种头文件。例如有如下报错。 1234./third_party/catch.hpp:69:33: fatal error: TargetConditionals.h: No such file or directory # include <TargetConditionals.h