#What are shared libraries in C and how do they work?
1 messages · Page 1 of 1 (latest)
<@&987246683568103514> please have a look, thanks.
Shared libaries are exactly what they sound like. On linux, it's .so, on windows: .dll, not sure about mac. The basic idea is that if your program wants to use a function, rather than bundling it in with your executable, you can simply reference it during compilation, and during run time, the linker would resolve those references and your program would work as expected
I've had this answer bookmarked for a few years: https://stackoverflow.com/a/2650053/18902234
This also helps: https://www.youtube.com/watch?v=Slfwk28vhws&pp=ygUjc2hhcmVkIGxpYmFyaWVzIGxvdyBsZXZlbCBsZWFybmluZyA%3D
In this video we talk about how to program our own custom libraries in C. We go deep on the process of implementing and creating shared libraries. Specifically, you will learn what shared libraries are, the benefits of creating your code as a shared library, and how program your own custom library.
Subscribe for more videos on low level compute...