Advertisement

dlopen on mac?

Started by August 20, 2004 08:13 AM
1 comment, last by Rebooted 20 years, 2 months ago
I'm developing a cross platform dynamic library loader for my game engine. On Windows I'm using LoadLibrary() and GetProcAddress(). I was hoping I could use dlopen() on Linux and on Mac OS X, but apparently OS X doesn't implement dlopen()?
If you use libltdl, it'll handle all of this for you. I just wrap it in my own interface because it's more portable than anything I'd take the time to write (well, not really, but for the most part ;)). I think it allows for static linking as well...

If you check this page it'll tell you what to use instead of dlopen and friends. I bookmarked that page a long while ago since it's pretty helpful :).
Advertisement
Thanks for that apple page, I've used the functions it provides for my mac code. :)

This topic is closed to new replies.

Advertisement