error: one or more PCH files were found, but they were invalid"/>
cc1plus: error: one or more PCH files were found, but they were invalid
解决qt的pch编译报错问题
- 描述
- 解决
描述
在引入Qt预编译机制后,发现在有些机器上编译报以上错误。例如在一个同时装了Qt5.12.8和Qt5.12.5的机器上。
解决
暂时先删除预编译机制。在pro文件中注释掉引入预编译的语句,执行qmake并重新构建。如果已经用了一段预编译,再编译时可能报错,添加相应的头文件就好了。
更多推荐
cc1plus: error: one or more PCH files were found, but they were invalid
发布评论