免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2997 | 回复: 2
打印 上一主题 下一主题

[C++] glibc的版本问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-10-16 14:59 |只看该作者 |倒序浏览
今天编译thrift,却发现报了这样的错。'g_array_unref' undeclared (first use in this function)。查文档发现'g_array_unref' 是在2.22引入的glibc
g_array_ref ()
GArray *            g_array_ref                         (GArray *array);Atomically increments the reference count of array by one. This function is MT-safe and may be called from any thread.

array :
A GArray.
Returns :
The passed in GArray.

Since 2.22

--------------------------------------------------------------------------------
可是我上glibc的官网http://www.gnu.org/software/libc/index.html发现现在glibc最高版本才是2.18啊。这是怎么回事?
运行/lib/libc.so.6 gblic的发型版是2.5。弱弱的问一下,2.5的版本高还是2.18的版本高啊?

[root@localhost test]# /lib/libc.so.6
GNU C Library stable release version 2.5, by Roland McGrath et al.
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.1.2 20080704 (Red Hat 4.1.2-46).
Compiled on a Linux 2.6.9 system on 2010-03-10.
Available extensions:
        The C stubs add-on version 2.1.2.
        crypt add-on version 2.1 by Michael Glad and others
        GNU Libidn by Simon Josefsson
        GNU libio by Per Bothner
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
        Native POSIX Threads Library by Ulrich Drepper et al
        BIND-8.2.3-T5B
        RT using linux kernel aio
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
You have new mail in /var/spool/mail/root

论坛徽章:
17
处女座
日期:2013-08-27 09:59:352015亚冠之柏太阳神
日期:2015-07-30 10:16:402015亚冠之萨济拖拉机
日期:2015-07-29 18:58:182015年亚洲杯之巴勒斯坦
日期:2015-03-06 17:38:17摩羯座
日期:2014-12-11 21:31:34戌狗
日期:2014-07-20 20:57:32子鼠
日期:2014-05-15 16:25:21亥猪
日期:2014-02-11 17:32:05丑牛
日期:2014-01-20 15:45:51丑牛
日期:2013-10-22 11:12:56双子座
日期:2013-10-18 16:28:17白羊座
日期:2013-10-18 10:50:45
2 [报告]
发表于 2013-10-16 15:36 |只看该作者
回复 1# microwolf8


    你搞错了吧,你说的是应该是glib而不是glibc,一字之差 谬之千里。glibc是The GNU C library,最新版本2.18,而glib是GLib是GTK+和GNOME工程的基础底层核心程序库,最新版本2.38。g_array_unref属于glib一定要搞清楚了。glib在这儿下载:http://ftp.gnome.org/pub/gnome/sources/glib/

论坛徽章:
0
3 [报告]
发表于 2013-10-16 15:59 |只看该作者
这样啊。谢谢了,回去试试
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP