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

json-c/json.h not found #204

Closed
peidong opened this issue Oct 19, 2015 · 1 comment
Closed

json-c/json.h not found #204

peidong opened this issue Oct 19, 2015 · 1 comment

Comments

@peidong
Copy link

peidong commented Oct 19, 2015

Hello,

I write C code beginning with

include <json-c/json.h>

And compile with the command.
gcc test.c -ljson
Or
gcc test.c -ljson-c

But the json.h is not found.

P.S. I use both Intel Edison embedded Linux with json-c (0.11) installed and Mac osx with json-c (0.12) installed.

@hawicz
Copy link
Member

hawicz commented Nov 28, 2015

There's not enough information here to know what the problem is. I'd suggest checking whether json.h (and the other json-c headers) actually exist on your system, and if it's not installed into a normal location you might want to add an appropriate -I option to your compile line.
If you still nee help, please re-open this with more details.

@hawicz hawicz closed this as completed Nov 28, 2015
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