用gcc编译.cpp文件可能出现"undefined reference to `__gxx_personality_v0'"问题的解决
来源:互联网 发布:二进制转中文 Java 编辑:程序博客网 时间:2024/04/29 08:57
用gcc编译.cpp文件时出现undefined reference to `__gxx_personality_v0',可能某些gcc不支持,具体是什么问题,我也没有弄清楚(如果哪位大侠高清楚了,请告知).
解决的办法就是通过g++来编译,就可以通过了!!
如我编译文件ds_attr.cpp
# gcc -ldb -o ds_attr ds_attr.cp
/tmp/ccytkpsi.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
# g++ -ldb -o ds_attr ds_attr.cp
sucess!!
- 用gcc编译.cpp文件可能出现"undefined reference to `__gxx_personality_v0'"问题的解决
- 用gcc编译.cpp文件可能出现"undefined reference to `__gxx_personality_v0'"问题的解决
- 用gcc编译.cpp文件可能出现"undefined reference to `__gxx_personality_v0'"问题
- gcc编译cpp文件 出现undefined reference to `__gxx_personality_v0'
- 编译c文件出现undefined reference to `__gxx_personality_v0'
- 编译c文件出现undefined reference to `__gxx_personality_v0'
- gcc链接.cpp和.c文件生成的.o库文件的时候,Linking error "undefined reference to `__gxx_personality_v0'"
- cc编译cpp遇到undefined reference to `__gxx_personality_v0'
- gcc编译出现 undefined reference to 的问题
- gcc编译出现undefined reference to 的问题
- 在编译Faac1.28库时出现编译C++ 的undefined reference to '__cxa_end_cleanup'及 __gxx_personality_v0问题
- 编译出现这种错误 undefined reference to '__gxx_personality_v0'
- 编译程序出现 undefined reference to `__gxx_personality_v0' 错误
- android ndk编译C++ 的undefined reference to '__cxa_end_cleanup'及 __gxx_personality_v0问题
- android ndk编译C++ 的undefined reference to '__cxa_end_cleanup'及 __gxx_personality_v0问题
- 解决gcc 编译时报错"undefined reference to 'main'" 问题
- gcc编译出现”undefined reference to `pcap_parse’”
- undefined reference to `__gxx_personality_v0'
- PostgreSQL之精妙的数据库导入导出工具架构 (三)
- LVS大全
- hdu 1875 畅通工程再续
- wince下的快捷方式
- 恼人的尾椎疼痛
- 用gcc编译.cpp文件可能出现"undefined reference to `__gxx_personality_v0'"问题的解决
- 移植wireless tools (iwpriv, iwconfig, iwgetid, iwevents, iwspy, iwlist)到Android
- 作为兼并重组的重要方式之一,企业合并、分立的具体形式?
- 几个常用的shell命令(不断更新中)
- PHP中的目录遍历
- 方法中使用到的NSString是否需要dealloc?
- 学习熊猫烧香的源代码 (有注释)
- 正则表达式高级技巧背后的关键概念
- bash如何判断一个文件是否存在