当前位置: 代码迷 >> QT开发 >> 怎么为QtCreator加入预编译提高编译速度,stdafx.h'
  详细解决方案

怎么为QtCreator加入预编译提高编译速度,stdafx.h'

热度:435   发布时间:2016-04-25 03:53:45.0
如何为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,再编译。