Using Precompiled Headers

The easiest way to use precompiled headers is to include the following statement in your Sources file:

PRECOMPILED_INCLUDE=some_header_file_that_every_source_file_includes

If you are building C++ code, include the statement:

PRECOMPILED_CXX=1

Nothing else is required.

Precompiled headers are put into the directory that is specified by the O macro. Their default location will be the directory used for object files (for more information, see Specifying the Location of Created Files). Therefore, they should not collide during simultaneous compilations.

See Also

PRECOMPILED_CXX, PRECOMPILED_INCLUDE, PRECOMPILED_OBJ, PRECOMPILED_TARGET

 

 

Send comments about this topic to Microsoft

Build date: 5/3/2011