laruence / yar-c

Yar C Framework
Apache License 2.0
106 stars 29 forks source link

安装失败 #6

Open ixqbar opened 9 years ago

ixqbar commented 9 years ago

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

求助

zhanglei commented 9 years ago

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

ixqbar commented 9 years ago

是哦,安装了0.5.9解决了

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

zhanglei commented 9 years ago

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

ixqbar commented 9 years ago

谢谢,已经解决 我用的

ifndef ulong

define ulong unsigned long

endif