data rate

stay here and get updated with technology

Setting up the environment

Prev | Next | Index

Setting up the environment

For Linux environment:

open terminal as root and run the command

sudo apt-get install libjson0 libjson0-dev

If you are using terminal to build and executing c programs then add -l json-c while compiling


gcc hello_json.c -o hello_json -l json-c

If you are using eclipse then goto

project->properties->c/c++ Build->setting->Libraries and click add button type json-c.Then from search path click add button then click workspace and choose your workspace.


ps: if you in other OS just download json-c and  copy the library  to your workspace and follow above steps

once you done all this steps, you are able to compile your C codes with json libs.In case of any issues facing feel free to write it on comments.
Prev | Next | Index

%d bloggers like this: