cc1plus: error: one or more PCH files were found, but they were invalid

编程入门 行业动态 更新时间:2024-10-23 10:19:51

cc1plus: <a href=https://www.elefans.com/category/jswz/34/1771302.html style=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

本文发布于:2024-03-09 15:35:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1725386.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:error   cc1plus   PCH   invalid   files

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!