I have a very big project and for the sake of compilation speed I started to test precompiled headers.
I've setup everything now:
- enable precompiled headers in VS (use them for the project, create it for the
StdAfx.h
only) - use multi processor compilation for all but for the
StdAfx.h
- automatically include the
StdAfx.h
in all my files via the force include of VS
The question that occurs now is following:
Do I need to remove all includes of all project files that I've added to the StdAfx.h
file or is this unnecessary? Will the compiler skip any include automatically because he knows it's part of the StdAfx.h
or should I remove them from each .h
/.cpp
file manually?