【发布时间】:2019-12-11 04:09:57
【问题描述】:
我在 VirtualBox 上使用 CentOs7。我至少需要 6.0.20 版本的 libstdc++。我使用此处给出的说明从源代码在我的系统上安装了 gcc 7.4.0:https://linuxhostsupport.com/blog/how-to-install-gcc-on-centos-7/
gcc --version 按预期打印 gcc (GCC) 7.4.0。
运行strings /usr/lib64/libstdc++.so.6|grep GLIBCXX 打印:
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
根据https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html,我的GLIBCXX版本应该是3.4.24
【问题讨论】: