Tag: preprocessor
3 posts
-
C++ Compilation Pipeline — Preprocessing and Compilation
C++ build pipeline: preprocess, compile, assemble, link; static vs dynamic libs; fix undefined reference and common linker errors.
-
C++ Preprocessor Directives: #include, #define, and #ifdef
How the C++ preprocessor handles #include, #define, #if/#ifdef and #pragma, why macros misbehave (double evaluation, dangling else), and when to use constexpr.
-
C++ Header Guards: #ifndef vs #pragma once and Portability
How #ifndef guards and #pragma once stop double inclusion, why they cannot prevent multiple definition link errors, macro collisions and circular includes.