liveBook · Manning

Dynamic linking

Dynamic linking is the process of resolving and loading library code separately from an executable, typically when the program is loaded or running.

How 2 Manning books explain it

Refactoring to Rust

Dynamic linking is the process of resolving and loading library code separately from an executable, typically at program startup or runtime.

How it is used
Integrates Rust library code into an existing C executable through a separately built, linkable library.
How deep it goes
Explains Cargo configuration, linker paths, C ABI exports, pointer checks, and string conversion through a working integration.
Examples
Uses a C calculator, Rust solve function, Cargo configuration, gcc commands, linker errors, and runtime output.
What you can do after
Operate/configure a Rust dynamic library and link it into a C calculator while validating pointers and C strings.

Read how Refactoring to Rust explains dynamic linking →

Systems Programming with Zig

Dynamic linking is a linking technique in which an executable records its dependency on a separately provided library that is loaded at runtime.

How it is used
Uses dynamic linking to explain library dependencies in FFI and frame GLFW’s platform-library requirements against Zig’s static-linking preference.
How deep it goes
Defines dynamic linking and contrasts it with static linking, but does not detail the operating system’s loading mechanisms.
Examples
Uses Linux libc version mismatches and GLFW’s dynamically linked system libraries to illustrate compatibility risks.
What you can do after
Evaluate how system-library dependencies may affect program compatibility across systems, and contrast that risk with static linking.

Read how Systems Programming with Zig explains dynamic linking →

Also covered in

Related concepts

Questions about dynamic linking

What is dynamic linking?

Dynamic linking is the process of resolving and loading library code separately from an executable, typically when the program is loaded or running.

Which Manning books explain dynamic linking?

Refactoring to Rust and Systems Programming with Zig.

What is the difference between dynamic linking and static linking?

Dynamic linking is the process of resolving and loading library code separately from an executable, typically when the program is loaded or running. Static linking is the process of incorporating required library code into an executable at build time rather than loading those libraries as shared dependencies at runtime.

What is dynamic linking a kind of?

Dynamic linking is a kind of linking. Linking combines compiled code and libraries into a program image, resolving references between their symbols.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.