Jump to content
  • Advertisement
Sign in to follow this  

Link against specific shared object

This topic is 2914 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 have installed 2 versions of OSG on my linux machine. My /usr/local/lib64 folder looks like this:

libosgFX.so -> libosgFX.so.80
libosgFX.so.80 -> libosgFX.so.3.0.1
libosgFX.so.60 -> libosgFX.so.2.9.5

so libosgFX.so for example points to the newest shared object. If I link against -losgFX, the linker will link against libosgFX.so.3.0.1.
Is it possible to link against the old version libosgFX.so.2.9.5? I tried to specify the .so directly with: g++ ... /usr/local/lib64/libosgFX.so.60, but I still get
a lot of undefined references.

So how do I link against a specific version of a .so?

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!