The compilation process consists of four major steps: preprocessing, compilation, compilation, and linking. Preprocessing mainly involves macro definition replacement, file inclusion, and Conditional compilation. Use the # ifndef mechanism to prevent the following situation: File A contains a header file C, and file B also contains the header file C, and file a contains header file B, if the # ifndef structure is used, errors can be avoided during compilation, but the header file is defined (including functions, arrays, and variables) when linking, an error will be reported because multiple objects contain the same object. This error is a link error rather than a compilation error. Therefore, it must be noted that only declarations can be made in the header file, cannot be defined. In addition, note the difference between the include backend angle brackets and double quotation marks. The angle brackets tell the compiler to first find the header file from the library already included during software installation, double quotation marks tell the compiler to first find the header file under the specified directory. Compiling is to convert the preprocessing result into an assembly language, and the compilation result is to translate the result into a machine code. The link is to synthesize an executable file by combining various functions, the concept of the database is involved here.