Chapter Wrap-up
Explore the complex process of linking in CMake, understanding how object files and libraries are combined. Learn about symbol resolution, relocation, different types of libraries, and strategies for managing symbol duplication. Understand how to prepare your programs for testing by separating main functions, enabling efficient use of external libraries in C++ projects.
We'll cover the following...
Summary
Linking in CMake does seem simple and insignificant, but in reality, there's much more to it than meets the eye. After all, linking executables isn't as simple as putting puzzle pieces together. As we learned about the structure of object files and libraries, we discovered that things must move around a bit before a program is runnable. These things are called sections, and they have distinct roles in the life cycle of the program—storing different kinds of data, instructions, ...