2
回答
zlog编译失败ubuntu12.10
终于搞明白,存储TCO原来是这样算的>>>   

@难易 你好,想跟你请教个问题:

zlog1.2.4版本在ubuntu 12.10上编译失败

cd src && make all
make[1]: 正在进入目录 `/home/xuegl/xs/lib/zlog-1.2.4/src'
cc -std=c99 -pedantic -c -O2 -fPIC  -Wall -Werror -Wstrict-prototypes -g -ggdb buf.c
In file included from /usr/include/string.h:642:0,
                 from zc_xplatform.h:41,
                 from zc_defs.h:26,
                 from buf.c:26:
在函数‘memset’中,
    内联自‘zlog_buf_adjust_append’于 buf.c:615:11:
/usr/include/x86_64-linux-gnu/bits/string3.h:82:30: 错误: 调用‘__warn_memset_zero_len’,声明有警告属性:memset used with constant zero length parameter; this could be due to transposed parameters [-Werror]
cc1: all warnings being treated as errors
make[1]: *** [buf.o] 错误 1
make[1]:正在离开目录 `/home/xuegl/xs/lib/zlog-1.2.4/src'
make: *** [all] 错误 2

举报
薛国良
发帖于5年前 2回/210阅
顶部