读书人

怎么为QtCreator加入预编译提高编译速

发布时间: 2013-06-26 14:29:32 作者: rapoo

如何为QtCreator加入预编译提高编译速度,stdafx.h'。
根据查到的资料“http://blog.sina.com.cn/s/blog_6a35a0f601013671.html”可以用预编译提高QT编译速度。

但是在QtCreator工程文件加入

# Use Precompiled headers (PCH)
PRECOMPILED_HEADER = stdafx.h


编译时候会出错提示:
*** No rule to make target 'stdafx.h', needed by 'debug/stdafx.h.gch/c++'. Stop.

是不是工程项目没有正确设置? stdafx.h 预编译 qtcreator
[解决办法]
出这个问题一般是:QtCreator不够智能,还要手动qmake,再编译。

读书人网 >QT开发

热点推荐