解决方法在编译sh中加上 -lsupc++ 即可。

2、STL模块函数找不到,链接失败
stdc++/include/bits/stl_list.h:466: error: undefined reference to '__cxa_end_catch
stdc++/include/bits/stl_list.h:469: error: undefined reference to '__cxa_rethrow'
nal_baseD1Ev+0x0): error: undefined reference to '__gxx_personality_v0'


这些函数在 libsupc++.a库中,加上即可


ist.h:1424: error: undefined reference to 'std::_List_node_base::unhook()'
stdc++/include/bits/list.tcc:101: error: undefined reference to 'std::_List_node_base::hook(std::_List_node_base*)


这些函数在 libstdc++.a库中,加上即可

相关文章:

  • 2022-12-23
  • 2021-06-04
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-30
  • 2021-05-12
  • 2021-08-14
  • 2022-12-23
  • 2021-08-30
  • 2021-07-11
  • 2021-08-05
相关资源
相似解决方案