{"id":2637,"date":"2016-08-08T14:43:36","date_gmt":"2016-08-08T14:43:36","guid":{"rendered":"https:\/\/raspberry-projects.com\/pi\/?p=2637"},"modified":"2016-08-08T14:45:27","modified_gmt":"2016-08-08T14:45:27","slug":"using-libconfig-in-a-cpp-project","status":"publish","type":"post","link":"https:\/\/raspberry-projects.com\/pi\/programming-in-c\/config-files-etc\/libconfig\/using-libconfig-in-a-cpp-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\r\n&nbsp;<\/pre>\n<pre>\r\n<code>sudo apt-get install libconfig++-dev <\/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\nusing namespace libconfig;\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: &nbsp; 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 using namespace libconfig; &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-2637","post","type-post","status-publish","format-standard","hentry","category-libconfig"],"_links":{"self":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2637","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=2637"}],"version-history":[{"count":2,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2637\/revisions"}],"predecessor-version":[{"id":2642,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2637\/revisions\/2642"}],"wp:attachment":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/media?parent=2637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/categories?post=2637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/tags?post=2637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}