#What are shared libraries in C and how do they work?

1 messages · Page 1 of 1 (latest)

stable gust
#

Hi, so, I'm studying C, and came across shared libraries, now I kinda understood the concept of the OS linking them to the executable, but I don't understand how the soname/realname libmat works, can anyone help??

scenic geodeBOT
#

<@&987246683568103514> please have a look, thanks.

balmy copper
#

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

#

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...

▶ Play video