msvc precompiled headers

Started by
0 comments, last by ApochPiQ 15 years, 3 months ago
I love PCH as they dramatically reduce buildtimes by roughly an order of magnitude but every so often I waste time looking for a bug in my code where none exists. no doubt you've seen it before eg, step through the exe with the debugger i = 5; // debugger saiz i = 4627547613, gahh :) of course rebuild all, fixes the problem Does anyone have any hints with what code msvc struggles with WRT PCH's cheers zed
Advertisement
In my experience templates are pretty rough on the PCH dependency checker. It's not at all uncommon to update a template function or class and have it be overlooked by VS.

However, you should be able to just select your PCH .cpp file and compile it by itself, to avoid a rebuild all. (This assumes you have the habit of compiling only the current file with Ctrl+F7 instead of the whole project, which is a good way to avoid waiting on long compiles that aren't strictly needed yet.)

Wielder of the Sacred Wands
[Work - ArenaNet] [Epoch Language] [Scribblings]

This topic is closed to new replies.

Advertisement