PDA

View Full Version : Precompile headers



bruccutler
12th January 2007, 21:52
Thanks for the help on the last question.

One more:
I using Dev Studio 2005 with the Qt snapin.

I want to do precompiled headers, but everytime the moc_... files are rebuilt they don't include the #include "stdafx.h". I was told that I could change the configuration for these modules to use a precompiled header, but I need some way to have the #include ... added to the file.

How do I use precompiled headers with Qt and MS VS 2005?

jpn
13th January 2007, 09:03
Maybe this article helps: Precompiled Headers (http://wiki.qtcentre.org/index.php?title=Precompiled_Headers).

bruccutler
17th April 2007, 15:33
I finally got back to this. The issue I have is that I've been working within the MSVC environment, ever since importing the .pro file a number of weeks ago.

I have two questions:
1. How do I create a .pro file from the .vcproj file?
2. Do I need to export and reimport the .pro file in order to start using pre-compiled headers? The problem I see is that all of the the moc_<filename>.cpp files all come up and give a c1010 - unexpected end of file while looking for precompiled headers.

- BRC