gcc编译文件名后缀不匹配错误

Written by

in

用gcc编译一个xx.cpp的文件或出现如下错误:
/tmp/ccq5K20D.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0′
用g++可以编译,如果要用gcc编译,改边文件后缀为*.c

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *