laruence / yar-c

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

build error #10

Open wenli135 opened 7 years ago

wenli135 commented 7 years ago

msgpack需要哪个版本呢?

yar_pack.c: In function 'yar_unpack_data_type': yar_pack.c:211:8: error: 'MSGPACK_OBJECT_FLOAT' undeclared (first use in this function) case MSGPACK_OBJECT_FLOAT: ^ yar_pack.c:211:8: note: each undeclared identifier is reported only once for each function it appears in yar_pack.c:213:8: error: 'MSGPACK_OBJECT_STR' undeclared (first use in this function) case MSGPACK_OBJECT_STR: ^ yar_pack.c:214:20: error: 'msgpack_object_union' has no member named 'str' size = obj->via.str.size; ^ yar_pack.c: In function 'yar_unpack_data_value': yar_pack.c:243:8: error: 'MSGPACK_OBJECT_FLOAT' undeclared (first use in this function) case MSGPACK_OBJECT_FLOAT: ^ yar_pack.c:244:29: error: 'msgpack_object_union' has no member named 'f64' (double )arg = obj->via.f64; ^ yar_pack.c:246:8: error: 'MSGPACK_OBJECT_STR' undeclared (first use in this function) case MSGPACK_OBJECT_STR: ^ yar_pack.c:247:34: error: 'msgpack_object_union' has no member named 'str' (const char )arg = obj->via.str.ptr; ^ make[1]: ** [yar_pack.lo] Error 1 make[1]: Leaving directory `/home/himalayas/gitsource/yar-c' make: [all] Error 2

laruence commented 7 years ago

你用的是哪个版本的?

wenli135 commented 7 years ago

0.5.7, ubuntu 14.04 apt 安装的

谢谢

wenli135 commented 7 years ago

btw: msgpack-php是基于什么版本的msgpack? msgpack版本之间兼容吗?我在网上查msgpack并不保证版本之间兼容。