PDA

View Full Version : Precompiled headers



Benjamin
4th December 2008, 14:09
Hi all,

I am trying to use precompiled headers in my project but for some reason I can not.
I have put CONFIG += precompile_header and PRECOMPILED_HEADER = stable.h in my .pro file and I have made stable.h file. For some reason when I run qmake it generates Makefile without including precompiled headers.

Does anyone have any idea?

Tnx,
Benjamin

caduel
4th December 2008, 14:48
Have you read the wiki (http://wiki.qtcentre.org/index.php?title=Precompiled_headers) for precompiled headers?

What compiler do you use (gcc supports precompiled headers starting with gcc3.4 I think)?
Make sure the compiler does support precompiled headers.

HTH