Linux Library Question

Associate
Joined
28 Jun 2005
Posts
1,350
I program I need won't work unless it has an old version of a library available to it.

error while loading shared libraries: libstdc++-libc6.1-2.so.3: cannot open shared object file: No such file or directory

I can't find that particular file anywhere on the net, but I can find compat libraries that supposedly contain it.

e.g.
compat-libstdc++-rh71-1.i386.rpm

When I install that using :

[root@mybox]# rpm --install compat-libstdc++-rh71-1.i386.rpm
package compat-libstdc++-rh71-1 is already installed

[root@mybox]# rpm -qa | grep libstd
libstdc++-3.4.3-9.EL4
compat-libstdc++-33-3.2.3-61
compat-libstdc++-rh71-1

Can I just link the compat entry to point at libstdc++-libc6.1-2.so.3 or am I way off?
 
Easiest way, pass the include path of libstdc++-libc6.1-2.so.3 as an option to your linker if its on your system already in a weird dir. (i.e not /usr/lib/ etc..)
 
Last edited:
That's not necessarily the reason for the new version though, is it? The new version might have an extended API, or just plain old improvements to the internals.. as is usually the case.
 
Back
Top Bottom