根据查到的资料“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,再编译。