What does “/usr/lib/libstdc .so.6: version `GLIBCXX_3.4.15' not found” mean, and how do I fix it?

ⅰ亾dé卋堺 提交于 2019-12-10 19:13:55

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!