对‘_gxx_personality_v0’未定义的引用 collect2: 异常: ld 返回 1

对‘__gxx_personality_v0’未定义的引用 collect2: 错误: ld 返回 1在linux下使用vim编译C++程序,如果使用g

对‘__gxx_personality_v0’未定义的引用 collect2: 错误: ld 返回 1

在linux下使用vim编译C++程序,如果使用gcc命令进行编译,则有可能出现此错误:

hugo@hugo-HP:~/codes$ g++ -o codes TelNumRepeat.ohugo@hugo-HP:~/codes$ lscodes  TelNumRepeat.cpp  TelNumRepeat.o