Linux › Section O · Development tools › Topic O.1
The C compiler and linking
Most of the programs on a Linux system began as C or C++ source code. Knowing how the compiler, the linker and shared libraries fit together explains where those programs come from, and why a program can fail to start with a message about a missing library.
In this topic
- From source code to program
- The four stages
- Worked example: a two-file program
- Header files and the preprocessor
- Linking against libraries
- Static and shared libraries
- ldd and the runtime linker
- Building in a search path
- Worked example: a program that will not start
- Common mistakes to avoid
- Key takeaways
This topic is part of Wuanberri Pro. Checking your access…
