MENU

Fun & Interesting

Advanced Programming in the UNIX Environment: Week 11, Segment 3 - Shared Libraries

cs631apue 2,275 4 years ago
Video Not Working? Fix It Now

In this video, we cover shared libraries themselves. We'll discuss just what exactly a shared library is, how you create one, and how we can influence the behavior of dynamically linked executables due to the way the link-editor works by setting the LD_LIBRARY_PATH variable or using the "-rpath" flag for the linker. Slides for this lecture: https://stevens.netmeister.org/631/11-shlibs.pdf Course website: https://stevens.netmeister.org/631/ Outline: 00:00 Introduction 01:09 What exactly is a shared library? 07:55 How do shared libraries work? 11:03 Building a static library using ar(1) 15:12 Static libraries recap 16:03 Building a dynamic library 18:33 LD_LIBRARY_PATH 21:55 Using '-rpath' 25:35 Dynamic libraries recap 26:27 Using dlopen(2) 28:44 Recap

Comment