"Bo Peng" <[EMAIL PROTECTED]> writes:

| > | stdafx.h contains all commonly used headers. msvc knows from a
| > | compiler flag (or by default) that stdafx.h (stopping header) is
| > | pre-processed and skip it.
| >
| > Use #pragma hdrstop instead.
| 
| We do not have this in .C either.

This would be in the yet uncreated pch.cpp file.

| As I have said, I see no reason why
| not include pch.h.

I do.

by adding pch.h and removing the now duplicated headers you no longer
have control over the actually required headers for that particular
source file.

| I do not know. Peter may have an answer to that. Obviously, #include
| pch.h, and remove duplicate header files is safer. (And even if there
| are duplicate header files, it will not be processed because of the
| ifdef mechanism.)

What I am asking is if msvc precompiled headers support are compatible
with include guards.

-- 
        Lgb

Reply via email to