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

Missing functions header in json_object.h #296

Closed
kxp opened this issue Jan 3, 2017 · 1 comment
Closed

Missing functions header in json_object.h #296

kxp opened this issue Jan 3, 2017 · 1 comment

Comments

@kxp
Copy link

kxp commented Jan 3, 2017

I was trying to use extern int json_object_set_int(struct json_object *obj,int new_value); which I include from /usr/include/json-c/json_object.h but its not there. But if I use the original header that I use to compile the lib I get undifined reference.
The same thing happens to other setters. There is a test file(test_set_vale.c) that also uses this function,in that case I 'm assuming that it can be use from the "outside".
I am using the version 0.12.1.

@hawicz
Copy link
Member

hawicz commented Jan 4, 2017

json_object_set_int was added on October 5th in commit 05f025c.
Version 0.12.1 is from June.
If you want to use that function you'll need to build and install from a more recent copy of the code than the 0.12.1 release.

@hawicz hawicz closed this as completed Jan 4, 2017
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