C & Unix

Compiling C: Headers, Macros and Makefiles

8:23

Plays from YouTube. Watch on YouTube

How do multiple C source files become one executable without rebuilding everything?

Meet Compiling C: Headers, Macros and Makefiles: an original animated lesson in C and Unix systems programming.

We start with preprocessing, compilation, linking and the distinction between declarations and definitions.

From there, we build guarded headers, test macro substitution, derive Make dependency rules and identify compile versus link errors.

The big idea: The build is an explicit dependency graph whose interfaces must stay consistent.

C and Unix explained visually, one concept at a time.