现在的位置: 首页 > 综合 > 正文

gcc链接.cpp和.c文件生成的.o库文件的时候,Linking error “undefined reference to `__gxx_personality_v0′”

2013年03月23日 ⁄ 综合 ⁄ 共 144字 ⁄ 字号 评论关闭

Q:用gcc链接.cpp文件可能出现"undefined reference to `__gxx_personality_v0'" 比如:gcc test.o fun.o

其中test.o来自test.cpp文件,fun.o来自fun.c文件

 

A:用g++ test.o fun.o命令来进行链接动作即可。

抱歉!评论已关闭.