~/talk

C++ Shared Libraries and Where To Find Them

links:none on file
slides:none on file

Covers exactly when libraries get found — at configure, link, run and package time — and which tools reveal the truth: ld/ld.so and ldd, readelf/objdump, otool/install_name_tool, Dependency Walker on Windows. Demonstrates surprising behaviors: linkers on Linux happily emit a .so with undefined symbols (indirect deps must be recorded or RPATHs adjusted). Shows practical fixes: RPATH vs RUNPATH tradeoffs, LD_LIBRARY_PATH tricks, copying DLLs for Windows, and packaging approaches including Conan + CMake build/install trees and AppImage; notes cross‑build and edge cases where these only partially work.

AI-written summary · about

  1. 0:00Introduction
  2. 0:54Shared libraries importance
  3. 3:02When shared libraries needed
  4. 4:04Linking shared libraries
  5. 6:35Runtime linker search paths
  6. 9:46Inspecting ELF dependencies
  7. 13:40Local project libraries in builds
  8. 16:50Indirect dependencies behavior
  9. 22:54Shared libraries on Apple
  10. 29:57Windows DLLs and imports
  11. 35:52Why libraries located before compile
  12. 43:22Build systems and descriptors
  13. 43:43CMake runtime trees
  14. 47:35Windows debugging executables
  15. 50:51Creating relocatable bundles
  16. 58:17Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.