[Day 16] - Static and Dynamic Libraries (ar, objdump, ld, ldd) - Crash Course in C Programming
►C Programming playlist: • C Programming Series ►Find full courses on: https://courses.mshah.io/ ►Join as member to get perks: / @mikeshah ►Lesson Description: In this lesson I show you how to create both static and shared libraries on linux. Static and shared libraries are both ways to allow for code reuse, and another way to break large projects into smaller more manageable pieces. Using libraries can also have advantages in our build systems, by allowing for separate compilation for instance. 00:00 introduction 00:50 ldd tool usage 2:28 Physical structure of project 3:12 Header guards 5:08 The include directory (-I) 6:30 Building individual .o object files as static library 10:10 Creating two .o files. 11:50 Compiling with two .o files 12:18 The advantage of separate compilation of our .o files 13:55 The archive (ar) tool. 17:00 The advantage and use case of shared object (.so) files 18:10 Building a shared library with position independent code 20:30 Understanding include and linking errors (undefined reference) 22:48 Understanding format of how to link libraries with -l (lowercase L) 25:40 LD_LIBRARY_PATH to utilize our shared libraries 27:40 Summary 31:26 dlopen preview 32:11 Conclusion ►Please like and subscribe to help the channel! ►YouTube Channel: / mikeshah ►Join our free community: https://courses.mshah.io/communities/...
![[Day 17] - pointer arithmetic (addition and subtraction) (and a warning with sizeof!)](https://i.ytimg.com/vi/OgCVojdrRuQ/hqdefault.jpg?sqp=-oaymwEjCNACELwBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLCIHVH9K2G5Axam2rGc_M3LOQ6zrQ)
[Day 17] - pointer arithmetic (addition and subtraction) (and a warning with sizeof!)

In 54 Minutes, Understand the whole C and C++ compilation process

Your Second Day in C (Understand .h header and .c source files) - Crash Course in C Programming

Malloc is NOT Magic: Let's Build it to Learn What's Inside!

Static and Dynamic Linking on Linux with gcc

Why Building AI Data Centres Isn’t Working Anymore

"We Ran Out Of Columns" - The Worst Codebase Ever

Margin Call - "Sell it all. Today." 👆🤘👆

Why The Russian Accent Terrifies Everyone

Building the PERFECT Linux PC with Linus Torvalds

What Happens After The Compiler in C++ (How Linking Works) - Anders Schau Knatten - C++ on Sea 2023

Your Third Day in C (Understanding stack and heap memory) - Crash Course in C Programming

Creator of C++: Bell Labs, Negative Overhead Abstraction, Mistakes | Bjarne Stroustrup

Casey Muratori – The Big OOPs: Anatomy of a Thirty-five-year Mistake – BSC 2025

CMake Tutorial for Absolute Beginners - From GCC to CMake including Make and Ninja

How to write your own code libraries in C.

why do header files even exist?

Static vs. Shared Libraries

lvalue, rvalue, lvalue references and an intro to rvalue references | Modern Cpp Series Ep. 31

