StupidBeauty
Read times:490Posted at:Fri May 11 00:32:29 2012
- no title specified

转载:qt预编译头文件,果然快了很多

在用qmake管理的项目中可在pro文件中添加以下代码来启用g++的预编译头文件功能:

CONFIG+=precompile_header

PRECOMPILED_HEADER=ProCompile.h

然后ProCompile.h便会被搞成预编译头文件咯。至于会不会编译得快一些,本座还没大规模体验过。生成的预编译文件倒确实是狠大。

http://my.oschina.net/xiangxw/blog/15474

亮点:

项目文件中添加:

1

//project.pro

2

CONFIG+=precompile_header

3

PRECOMPILED_HEADER=stable.h

见qt assisant:Using Precompiled Headers

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4