> > Hi Balbir, > > > > I have ubuntu 10.10, the package i need is libcgroup-dev. > > I installed the package successfully (apt-get install libcgroup-dev). > > > > 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 > > /tmp/ccxO3B0V.o: In function `main': > > cgcreate.c:(.text+0x12): undefined reference to `cgroup_init' > > collect2: ld returned 1 exit status > > > > Did you link against libcgroup (please add -lcgroup)? > > Balbir >
Hi Balbir, ok, I added the option -lcgroup to compile my program and it works. gcc cgcreate.c -o create -lcgroup now I'm reviewing the existing documentation at http://libcg.sourceforge.net/html/index.html to create my program with therequirements that I want. also I'm reviewing the examples in src/tools and tests for more help. I hope no more problems with this API. your help is of great importance. Thanks, Regards 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