Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error #10

Open
wenli135 opened this issue Sep 11, 2017 · 3 comments
Open

build error #10

wenli135 opened this issue Sep 11, 2017 · 3 comments

Comments

@wenli135
Copy link

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
Copy link
Owner

你用的是哪个版本的?

@wenli135
Copy link
Author

0.5.7, ubuntu 14.04 apt 安装的

谢谢

@wenli135
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants