DSO missing from command line and error adding symbols Fix error /usr/lib64/libstdc++.so.6
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 occurs and how to resolve this.
Step 1 find the path of libstdc++.so.6 files in the 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. Hopefully, it will be available in any of these paths.
To fix this issue we should add the 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 specifying it explicitly.
Library for gcc
and g++ are different, so whenever use invokes the g++ library in gcc above error occur.
Saved as a favorite, I really like your blog!
Thanks designed for sharing such a fastidious thought,
piece of writing is good, thats why i have read it fully
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.
Remarkable! Its actually amazing piece of writing, I have
got much clear idea about from this piece of writing.
Hi there, after reading this awesome article i am also cheerful to share
my experience here with colleagues.
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 .