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
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