Jump to content
  • Advertisement
Sign in to follow this  
zedz

msvc precompiled headers

This topic is 3508 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!