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

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