Skip to main content
gamedev.net
🔒 Locked

Link against specific shared object

Started by schupf 0 replies 650+ views
Original Post
schupf
schupf
Hello!

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?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.