从 .cpp 到可执行文件:预处理、编译、汇编与链接 | C++

本章覆盖:`.cpp`;`.h` / `.hpp`;preprocessing;compilation;assembly;object file;linker;executable / shared library;compile error;link error;runtime error;为什么“声明有了但定义没链接进来”会报 undefined reference。

本章知识点

  • .cpp
  • .h / .hpp
  • preprocessing
  • compilation
  • assembly
  • object file
  • linker
  • executable / shared library
  • compile error
  • link error
  • runtime error
  • 为什么“声明有了但定义没链接进来”会报 undefined reference