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

Can't compile in Mac OS X El Capitan #320

Closed
queenieho opened this issue Apr 28, 2017 · 1 comment
Closed

Can't compile in Mac OS X El Capitan #320

queenieho opened this issue Apr 28, 2017 · 1 comment

Comments

@queenieho
Copy link

I installed json-c using homebrew and tried to test it out.

With #include <json/json.h> and "gcc main.c -l json" I got the following error:
fatal error: 'json/json.h' file not found

With #include <json-c/json.h> and "gcc main.c -l json" I got the following error:
ld: library not found for -ljson
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@queenieho
Copy link
Author

nevermind, it works compiling with -l json-c

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

1 participant