From the course: Exploring C Libraries

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Testing the json-c installation

Testing the json-c installation - C Tutorial

From the course: Exploring C Libraries

Start my 1-month free trial

Testing the json-c installation

- [Instructor] After installing the JSON-C library, the next step is to test the installation. This exercise file outputs the library's current version string and blind six. You compile and link this code with command clang the name of the compiler or you can use Cc or GCC going to turn on all the warnings, link in the Json-c library, which isn't required but this is a test and then the name of the source code. No errors, no warnings, let's test the output. And there's the version string, which may be different on your system. As a suggestion, I recommend that you manually install the library files. Specifically to provide the documentation for the json-c library. Change to the downloads directory or any directory where you can store and expand the json-c files. So in this system, I have a directory called sto, I'm going to visit there. And then to obtain the files right from the command prompt use the git command…

Contents