Jump to content
  • Advertisement
Sign in to follow this  
Rebooted

dlopen on mac?

This topic is 5080 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
Advertisement
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  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!