libstdc++

Place to discuss Fedora and/or Red Hat
Post Reply
worker201
guru
guru
Posts: 668
Joined: Sun Jun 13, 2004 6:38 pm
Location: Hawaii

libstdc++

Post by worker201 » Wed Jul 20, 2005 6:51 pm

Today, a user at another forum needed libstdc++.so.5 to build something (RealPlayer, yuk), but he only had libstdc++.so.6. And he wondered where to get it. I browsed around, and told him to download:
http://ayo.freshrpms.net/fedora/linux/4 ... 4.i386.rpm
since this package provides that library.

However, someone else told him that this would be better:
% ln -s libstdc++.so.6 libstdc++.so.5

That sounds more like a workaround to me. What's the difference? Aren't these files updated specifically to deal with versions of gcc? Will the symlink solution actually work right every time? Or am I correct?

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Thu Jul 21, 2005 7:41 am

The sym link will usually work for minor releases. Chances are if you were to recompile the program that requires it, it would link to whichever one you have installed so you wouldn't require a special version. Since we're talking RealPlayer here he can probably only get the binary version and would not be able to recompile/relink. In this case the sym link will probably work just fine. What I would do if given the choice is recompile/relink the app to the version of the library I have (especially if I have a newer version of the library that should be backward compatible). I don't run into this very often any more since I don't use any proprietary software and everything I do use there are packages for my version of OS (for the most part).

Post Reply