John E
September 12th, 2002, 12:50 PM
I've long been hugely suspicious of precompiled headers and always turn them off whenever possible. The biggest problem is that if you modify a header file, the compiler doesn't seem to rebuild the pch. Therefore any code you want to recompile simply carries on using the unmodified version of the header code. This doesn't seem to be confined to Visual C++. Other compilers seem to behave in the same way.
Firstly, is there any way to force a precompiled header to be rebuilt when a relevant header file changes?
Secondly, when you select precompiled headers in the project settings, what exactly is the meaning of the field called "through header". EG some sample programs that I've seen are designed to use precompiled headers "through header stdafx.h". What exactly does this mean??
Thanks,
John E
Firstly, is there any way to force a precompiled header to be rebuilt when a relevant header file changes?
Secondly, when you select precompiled headers in the project settings, what exactly is the meaning of the field called "through header". EG some sample programs that I've seen are designed to use precompiled headers "through header stdafx.h". What exactly does this mean??
Thanks,
John E