The linker ld cannot find libstdc++ library

Solution Unverified - Updated -

Issue

  • When compling in matlab,  the linking portion fails with an error message '/usr/bin/ld: cannot find -libstdc++'. There is no libstdc++.so for the ld to use.  After adding a symbolic link, Matlab compile completes successfully on 32 and 64 bit boxes.

  • Why is there no libstd++.so file present in /usr/lib in Red Hat Enterprise Linux ?

Environment

  • Red Hat Enterprise Linux 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content