Tag: linking
5 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++ One Definition Rule : Multiple Definitions and inline
The ODR requires a single definition across the program for variables and functions, with exceptions for inline, templates, and C++17 inline variables.
-
How the C++ Linker Works: Undefined References, Library Order, and Shared Libraries
What the C++ linker actually does, why "undefined reference" and "multiple definition" happen, why -l order matters, and how rpath, $ORIGIN and LTO behave.
-
C++ Compilation Process Explained: Preprocessing, Compiling, Assembling, and Linking
From C++ source to executable: preprocessing, compilation, assembly, and linking, plus the link errors each stage causes (library order, templates, extern "C", ABI mismatches), rpath, LTO, and how C++20 modules change the pipeline.
-
C++ Name Mangling: Reading _Z Symbols, extern "C", and Link Errors
How C++ compilers encode namespaces, overloads, const and templates into symbols, reading them with nm and c++filt, and when extern "C" fixes link errors.