问题
I'm new to compiling libraries .so under Ubuntu. I have the source, .cpp file. I installed the build-essentials package finely, and I'm using the Anjuta IDE to compile the source code. I have the Makefile and everything is good.
Now although it compiles without error, when I load it, I get the error:
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found`
What does this mean and how can I fix it?
Edit: Any more tips?
Edit2: I really need help guys.
回答1:
I had similar issues and I tried (https://askubuntu.com/questions/164296/glibcxx-3-4-15-not-found):
sudo apt-get install libstdc++6
optionally you can force a global update of all the linked libraries with
sudo ldconfig
this last command can take some time and will not print anything on the bash, just wait.
回答2:
Sounds like a dependency problem, is your system up to date?
apt-get install && apt-get upgrade
回答3:
One way to work around this issue is to simply link libstdc++ statically (with this parameter sent to g++ when linking the executable):
-static-libstdc++
If linking in the library statically is an option this is probably the quickest work-around.
来源:https://stackoverflow.com/questions/12444136/what-does-usr-lib-libstdc-so-6-version-glibcxx-3-4-15-not-found-mean-and