欢迎访问 生活随笔!

生活随笔

当前位置: 首页 >

wchar.h not found

发布时间:2025/3/21 28 豆豆
生活随笔 收集整理的这篇文章主要介绍了 wchar.h not found 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

报错信息:wchar.h not found

/usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cwchar:44:10: fatal error: wchar.h: No such file or directory
#include <wchar.h>
^~~~~~~~~
compilation terminated.

Mac系统更新后,Command line tool没有自动更新,所以会导致找不到文件。

解决方案:打开终端,输入xcode-select --install 自动更新 Command Line Tool。

总结

以上是生活随笔为你收集整理的wchar.h not found的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。