I'm using some function like json_object_get_string etc in my code and have included #include <json-c/json.h>
in my code.
I downloaded cjson library from following link:
https://s3.amazonaws.com/json-c_releases/releases/json-c-0.13.tar.gz
I installed it after placing it in /usr/lib and following commands inside the library folder:
- ./configure
- make
- make install
Before installation of library,I was getting error in include statement, no such file or directory
But after installation, this error is gone but i get errors like: Undefined reference to json_object_get_string
and all other functions that i have used.
Can someone tell me if i'm missing something? do i need to install in some other way?