version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference

时间:2023-03-10 03:51:51
version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference

在python中运行如下:

$   python
>>> import wx

输出:symbol _ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE5eraseEmm, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference。

以前运行C++程序也出现过类似问题,当时采用静态链接标准库的方法解决的。

占行