On Tue, 25 Jan 2011 19:41:04 +0000 (UTC), [email protected] <[email protected]> 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@comun-Inspiron-530s:~# gcc cgcreate.c -o create
You need to link the libcgroup library: # gcc cgcreate.c -o create -lcgroup Nikunj ------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
