Previous Next

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 specified by the O macro. Their default location will be the directory used for object files (see Specifying the Location of Created Files for details). Therefore, they should not collide during simultaneous compilations.

See Also

PRECOMPILED_CXX, PRECOMPILED_INCLUDE, PRECOMPILED_OBJ, PRECOMPILED_TARGET