PDA

View Full Version : Qt Creator Precompiled Headers and Qt Creator on mac (g++)



mrshoki
22nd April 2010, 18:48
Hello,

I'm using precompiled headers on a Qt cross platform project to speed up compilation time. I'm using Qt 4.6.2 .When I compile the project using macx-g++ (meaning the g++ compiler) it doesn't include the stdafx.h automatically for each header. When compiling under xcode it will work. I'm using the PRECOMPILED_HEADER qmake constant to point at my stdafx.h.

So is it a limitation from g++? Or there a solution/work around?

Thanks for your help, Boris -

wysota
22nd April 2010, 19:51
How does your project file look like? What version of g++ do you have?