|
|
Am 13.07.2014 05:12, schrieb kmelsha:
> Am I the first to notice that you are not using precompiled headers correctly on
> Windows? If you don't include the header file you specified in the "Precompiled
> header file" area of the property page you will not receive any benefit. I
> suggest you create a sample Windows project in VS and you will see how it should
> be setup.
I suggest you try recompiling, say, povbackend, with "Precompiled
Header: Not used" in the project properties, and you will see how we do
receive a benefit :-P
There are two reasons why the sample Windows project inserts an #include
for the "precompiled header header":
- It is presumed that what you precompile is also the stuff you want to
include in each and every source file.
- Including the "precompiled header header", rather than individual
headers from it, is an easy way to avoid inconsistency problems that
could arise from including headers in different order.
However, it is /not/ mandatory. The magic is in the "Precompiled Header:
Use (/Yu)", not the actual inclusion of the one and only precompiled header.
Post a reply to this message
|
|