美文网首页
Clion编译 报错 “wchar .h not found”

Clion编译 报错 “wchar .h not found”

作者: allenyang羊羊 | 来源:发表于2019-05-27 16:41 被阅读0次

升级到macos 10.14系统后,发现clion在编译时提示了一堆系统头文件找不到的错误,诸如此类:

“wchar .h not found”

“string .h not found”

即使在项目录上点击右键,选择“Reload cmake project”也不管用。

解决方案1:

在菜单栏点击: “Tools -> CMake -> ResetCache and Reload Project”

解决方案2:

删除项目目录中的 “cmake-build-debug”目录

重新用clion打开项目,在项目录上点击右键,选择“Reload cmake project”

相关文章

网友评论

      本文标题:Clion编译 报错 “wchar .h not found”

      本文链接:https://www.haomeiwen.com/subject/ignhtctx.html