• Advertisement

Archived

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

what are pre-compiled header files?

This topic is 5950 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

Advertisement
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

  • Advertisement