yar-c
yar-c copied to clipboard
安装失败
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
求助
msgpack版本太高,用0.5.x版本就可以了
是哦,安装了0.5.9解决了
mac下安装照旧失败,提示ulong没定义,找了半天也没找到哪里定义了ulong
自己在yar_pack.h头文件中添加typedef unsigned long ulong;
谢谢,已经解决 我用的
#ifndef ulong #define ulong unsigned long #endif