首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > QT开发 >

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

2013-06-26 
如何为QtCreator加入预编译提高编译速度,stdafx.h'。根据查到的资料“http://blog.sina.com.cn/s/blog_

如何为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,再编译。

热点排行