{"id":2630,"date":"2016-08-08T13:33:42","date_gmt":"2016-08-08T13:33:42","guid":{"rendered":"https:\/\/raspberry-projects.com\/pi\/?p=2630"},"modified":"2016-08-08T14:44:55","modified_gmt":"2016-08-08T14:44:55","slug":"using-libconfig-in-a-project","status":"publish","type":"post","link":"https:\/\/raspberry-projects.com\/pi\/programming-in-c\/config-files-etc\/libconfig\/using-libconfig-in-a-project","title":{"rendered":"Using libconfig in a C project"},"content":{"rendered":"<h4>\nInstalling<br \/>\n<\/h4>\n<p>\nUse the following to install the library on your Raspberry Pi:\n<\/p>\n<pre>\r\n<code>\r\nsudo apt-get install libconfig-dev\r\n<\/code><\/pre>\n<h4>\nUsing<br \/>\n<\/h4>\n<pre>\r\n<code>\r\n#include &lt;libconfig.h&gt;\t\t\t\/\/This library needs the &quot;-lconfig&quot; adding to Project Properties &gt; Build &gt; Linker &gt; Libraries\r\n<\/code><\/pre>\n<p>\n&nbsp;\n<\/p>\n<p>\n&nbsp;\n<\/p>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing Use the following to install the library on your Raspberry Pi: sudo apt-get install libconfig-dev Using #include &lt;libconfig.h&gt; \/\/This library needs the &quot;-lconfig&quot; adding to Project Properties &gt; Build &gt; Linker &gt; Libraries &nbsp; &nbsp; &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[132],"tags":[],"class_list":["post-2630","post","type-post","status-publish","format-standard","hentry","category-libconfig"],"_links":{"self":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2630","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/comments?post=2630"}],"version-history":[{"count":7,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2630\/revisions"}],"predecessor-version":[{"id":2641,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2630\/revisions\/2641"}],"wp:attachment":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/media?parent=2630"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/categories?post=2630"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/tags?post=2630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}