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 - C Tutorial
From the course: Exploring C Libraries
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Understanding XML2m 23s
-
(Locked)
Testing the libxml2 installation3m 10s
-
(Locked)
Accessing XML data3m 26s
-
(Locked)
Generating XML data3m 57s
-
(Locked)
Working with JSON2m 39s
-
(Locked)
Testing the json-c installation3m 17s
-
(Locked)
Accessing JSON data3m 10s
-
(Locked)
Reading JSON data3m 46s
-
(Locked)
Creating JSON output3m 35s
-
-
-
-
-