Fix error /usr/lib64/libstdc++.so.6:error adding symobls:DSO missing from command line

Connect with

While we are migrating our code from commonly we are getting such kind of library error.

Today while I am migrating code at redhat7, we are facing this issue let me explain why this error occur and how to resolve this.

Step 1 find path of libstdc++.so.6 file in system and check the library

> ldd /usr/lib64/libstdc++.so.6
linux-vdso.so.1 =>(Address)

Find this library in (/usr/local/lib64, /usr/lib64) directory. Hope fully it will be available in any of these path.

To fix this issue we should add below line in our Makefile or command line parameters:-

-L/usr/lib64 -lstdc++

Another option is we can use g++ instead of gcc. This will automatically link stdc++ without specify it explicitly.

Library for gcc and g++ are different, so whenever use invoke the g++ library in gcc above error occur.


Connect with

6 thoughts on “Fix error /usr/lib64/libstdc++.so.6:error adding symobls:DSO missing from command line

  1. I’ve been exploring for a bit for any high quality articles or blog posts in this sort of house .
    Exploring in Yahoo I finally stumbled upon this web site.

    Reading this information So i’m satisfied to express that
    I have a very just right uncanny feeling I came
    upon just what I needed. I most indubitably will make certain to do not fail
    to remember this website and provides it a look on a relentless basis.

  2. Hello my family member! I want to say that this article is amazing,
    great written and include almost all important infos. I would like to peer more
    posts like this .

Leave a Reply

Your email address will not be published. Required fields are marked *