Sign in to follow this  

dlopen on mac?

This topic is 4866 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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()?

Share this post


Link to post
Share on other sites
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 :).

Share this post


Link to post
Share on other sites
Sign in to follow this