Archived

This topic is now archived and is closed to further replies.

dynamicman

what are pre-compiled header files?

Recommended Posts

quote:
Original post by dynamicman
What are they used for?


They speed up compilation by precompiling any functions defined in headers, and by storing the types and variables declared in a header. When a header that has been precompiled is needed, the declarations it contains are loaded rather than the header being reparsed.
quote:

what are the advantages?


They speed up compilation.
quote:

disadvantages?


Sometimes it can ''miss'' changes in headers. This is a bug in the compiler rather than a problem with the general concept of precompilation.
quote:

Why would one choose to use it?


They speed up compilation. Since precompiled headers are created automatically, I can''t see any reason to customize the precompilation options.

All your bases belong to us

Share this post


Link to post
Share on other sites