Chinaunix首页 | 论坛 | 博客
  • 博客访问: 8065096
  • 博文数量: 594
  • 博客积分: 13065
  • 博客等级: 上将
  • 技术积分: 10324
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-26 16:44
个人简介

推荐: blog.csdn.net/aquester https://github.com/eyjian https://www.cnblogs.com/aquester http://blog.chinaunix.net/uid/20682147.html

文章分类

全部博文(594)

分类: C/C++

2010-08-20 12:51:13

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

则可能是因为使用gcc编译cpp文件,两个办法:
1.将文件名改成.c文件
2.加上链接选项-lstdc++
阅读(2275) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~