> On Tue, 25 Jan 2011 19:41:04 +0000 (UTC), adansilva05@...
> <adansilva05@...> wrote:
> > i try to compile a simple example that I did using this library, but 
> > when compiling I have the following error: 
> > 
> > my little program to test:
> > 
> > cgcreate.c
> > #include <libcgroup.h>
> > 
> > int main(int argc, char *argv[])
> > {
> >   int ret = 0;
> >   
> >   /* initialize libcg */
> >   ret = cgroup_init();
> > 
> >   return ret;
> > }
> > 
> > to get compiling:
> > 
> > root <at> comun-Inspiron-530s:~# gcc cgcreate.c -o create
> 
> You need to link the libcgroup library:
> # gcc cgcreate.c -o create -lcgroup
> 
> Nikunj
> 


Hi, Nikunj

Good, I try to compile it with:
# gcc cgcreate.c -o create -lcgroup

and I have no problems.

now I'm reading the documentation of
the project to understand how
API functions works in order to use
in my program.

Your help has been of great importance.

thanks,
Luis Adan





------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to