如果编译遇到如下错误:
tmp/cceMNWaA.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status

则可能是因为使用gcc编译cpp文件,两个办法:
1.将文件名改成.c文件
2.加上链接选项-lstdc++

相关文章:

  • 2022-01-21
  • 2021-07-29
  • 2021-12-08
  • 2021-10-22
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-10-13
  • 2022-12-23
  • 2021-11-19
相关资源
相似解决方案