|
-
August 5th, 2010, 05:18 PM
#7
Re: Why don't set every header file as precompiled ?
 Originally Posted by itsmeandnobodyelse
A precompiled header normally is used for more cpp files.
Why is that ?
A precompiled header is - as the name says - precompiled (we have to compile it only once), so no matter in how many .cpp or .h files we'll include it - a compiler won't compile this kind of header again... That is my opinion.
 Originally Posted by itsmeandnobodyelse
If you have an own precompiled header for each cpp (what means an additional .cpp that creates the pch), precompiling has no benefit but only overhead.
Why does a .cpp file need to create the .pch ?
In wxDev-C++ if I want to create the precompiled header, I create a normal header and check "Create precompiled header" option...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|