data rate

stay here and get updated with technology

Setting up the environment

Part2:
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

eg:

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.

screenshot-from-2016-11-15-171238

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

Advertisements
%d bloggers like this: