Issue with fsuage api of glibtop



Hi,

I am getting linker error on using 

     glibtop_fsusage fsusage;
     glibtop_get_fsuage(&fsusage, "/");


command:
gcc -I/usr/include/libgtop-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0 -g -Wall cpu.c -lgtop-2.0


error:
/tmp/ccgEASfq.o: In function `main':
/home/vikas/cpu.c:175: undefined reference to `glibtop_get_fsuage'
collect2: ld returned 1 exit status

Pls help in resolving this issue.

Thanks
Vikas


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]