Making Simple Shared Object (.so) in C on Linux

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

To avoid confusion between static and dynamic: I will clarify that both methods I have shown are dynamic (loaded on runtime and not included in the binary), the difference between them is when the library is loaded, the first method causes the operating system to load the library when the program starts and the second method enables a program to load a library whenever it wants (after being started)

nirlichtman
Автор

Man this channel is Gold. I know i am almost never going to write C. But knowing all these things helps understanding things better. Thanks again 🙏

mohitkumar-jvbx
Автор

Thank you. Much simple way to show, how this work

GameBacardi
Автор

This is amazingly simple cuz of how u explained it

xrehpicx
Автор

Simple and elegant just like it should be 😁

Crux
Автор

great content, specially how you casually use ldd and ltrace and even though I have been coding in C for quite some time already you just taught me something new. Thank you!

One small tip: the font size is too small, specially if watching it while commuting on a handheld device. Try watching it at 240p and that will tell you how somebody without the gift of perfect eyesight will see it in a moving vehicle. But again, the content is superb, thanks again!

FF-hyro
Автор

He does all his Linux tutorials in WSL on Windows

interesting

chexo
Автор

Can you do a video covering dynamic linking on Windows, and how it differs (and is also similar to) Linux?
One thing I'm slightly perplexed by with Windows is .lib files - how do they differ in function and purpose to .h files?

dylanh
Автор

FInally I understand how it works :D Thankies

EmiLoomistar
Автор

Nice, the two methods look very similar, as far as i understand the first one calls the object during compile time, and the 2nd one during runtime ?
Good to know !

pouf-dknq
Автор

Question : when gcc loader. c you are not using -ldl to load the dlopen library. I get an error whitout.

pcuser
Автор

Can you make a USB serial monitor that works in the terminal?

__tech_support__
Автор

Really like the tutorials so far. Is that emacs that you are using? I've never actually taken the time to learn to use it but it seems very efficient.

marcusk
Автор

Thanks! Now I can finally execute my evil plans to make the user require a .so file or else they cannot open my app.

Why not make it harder for everyone?

I like suffering.

hedgehogform
Автор

Is there a reason you call them "shared objects" and not "shared libraries"?

davidfrischknecht
Автор

Which University course in computer would cover these basic thighs like object, library, shared object, etc please suggest ...
Btw, huge fan 😁😄

samarthtandale