What Can be Precompiled

A file to be precompiled does not have to be a header file (.h or .hpp files, for example), but it must meet these requirements:

You cannot precompile libraries or other binary files.

The Carbide IDE uses the build target settings to precompile a file.

However, the file may define static data. C++ source code can contain inline functions and constant variable declarations (const).

For example, to generate a precompiled header for use with Windows® compilers, you must use a Windows® compiler.

Typically, a source code file includes a precompiled header file before anything else (except comments).