🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Dynamic libraries

Started by
2 comments, last by Arfa 24 years, 2 months ago
Does anyone know of any references (preferably online) on how to use dyamic libraries under Linux? I know that Linux shared libraries are not exactly equivalent to Windows libraries, but there should be a way of using a library like a dynamic .dll file. Cheers, => Arfa <=
=> Arfa <=
Advertisement
You just need to link your program to the shared library, and it will dynamically load it for you.

If you have a .so of your own, which you won''t know about until later (eg a plugin) well, I can''t help you.

===============
BigDave
===============BigDave
Yeah, the plugin option was the way I was heading. Cheers anyway, man.


=> Arfa <=
=> Arfa <=
If you want to do plug-ins, check out the man page for dlopen. This will load a dynamic library at run time instead of having to link it at compile time...

This topic is closed to new replies.

Advertisement