title: Libcgroups Compilation Error
body: <p>When trying to start cgroups within a small c group I get the following error</p>
  
  <pre><code> In file included from /usr/include/libcgroup.h:24:0,
                   from simple_cgroup.h:28,
                    from simple_cgroup.cc:1: /usr/include/libcgroup/groups.h:108:8: error: forward declaration of
   ‘struct cgroup’  struct cgroup;
  </code></pre>
  
  <p>The code that uses these headers is </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;time.h&gt;
  #include &lt;fcntl.h&gt;
  #include &lt;pthread.h&gt;
  #include &lt;sys/time.h&gt;
  #include &lt;sys/stat.h&gt;
  #include &lt;sys/wait.h&gt;
  #include &lt;sched.h&gt; 
  #include &lt;string.h&gt;
  #include &lt;unistd.h&gt; 
  #include &lt;libcgroup.h&gt;
  </code></pre>
  
  <p>I compile using g++ with the -lcgroup flag..</p>
  
  <p>Help is much appreciated as to why this is happening</p>