yar-c icon indicating copy to clipboard operation
yar-c copied to clipboard

安装失败

Open ixqbar opened this issue 9 years ago • 4 comments

git clone https://github.com/msgpack/msgpack-c.git cd msgpack-c ./bootstrap ./configure make make install

libevent为 libevent-2.0.22-stable

安装yar-c时失败 yar_pack.c: In function 'yar_unpack_data_type': yar_pack.c:211: error: 'MSGPACK_OBJECT_DOUBLE' undeclared (first use in this function) yar_pack.c:211: error: (Each undeclared identifier is reported only once yar_pack.c:211: error: for each function it appears in.) yar_pack.c:213: error: 'MSGPACK_OBJECT_RAW' undeclared (first use in this function) yar_pack.c:214: error: 'msgpack_object_union' has no member named 'raw' yar_pack.c: In function 'yar_unpack_data_value': yar_pack.c:243: error: 'MSGPACK_OBJECT_DOUBLE' undeclared (first use in this function) yar_pack.c:244: error: 'msgpack_object_union' has no member named 'dec' yar_pack.c:246: error: 'MSGPACK_OBJECT_RAW' undeclared (first use in this function) yar_pack.c:247: error: 'msgpack_object_union' has no member named 'raw' make[1]: *** [yar_pack.lo] Error 1 make[1]: Leaving directory `/data/soft/yar-c' make: *** [all] Error 2

求助

ixqbar avatar May 13 '15 07:05 ixqbar

msgpack版本太高,用0.5.x版本就可以了

zhanglei avatar May 13 '15 10:05 zhanglei

是哦,安装了0.5.9解决了

mac下安装照旧失败,提示ulong没定义,找了半天也没找到哪里定义了ulong

ixqbar avatar May 13 '15 10:05 ixqbar

自己在yar_pack.h头文件中添加typedef unsigned long ulong;

zhanglei avatar May 14 '15 02:05 zhanglei

谢谢,已经解决 我用的

#ifndef ulong #define ulong unsigned long #endif

ixqbar avatar May 14 '15 02:05 ixqbar