Preprocessor Configuration: Definition
Let's learn about the preprocessor, the first step of the compiler.
The preprocessor plays a huge role in the process of building. Maybe this is a little surprising, given how simple and limited its functionality is. In the following sections, we'll cover providing paths to included files and using the preprocessor definitions.
Providing paths to included files
The most basic feature of the preprocessor is the ability to include .h
/.hpp
header files with the #include
directive. It comes in two forms:
#include <path-spec>
: Angle-bracket form#include "path-spec"
: Quoted form
Get hands-on with 1400+ tech skills courses.