Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-20-2006, 02:19 AM   #1
LQ Newbie
Registered: Jan 2006
Posts: 1

Rep: Reputation: 0
an old problem of libgtop 2.10


I'm using FC4. When I gcc the following simple c code, it fails due to the reason that it cannot find the proper libgtop library. But the make file log matches the official release and I also can find the etc library files in /usr/lib. I searched around all the internet and find it is a common problem, but cannot find even a solution to that. If someone have ideas, can you give me hand. Any of your help would be greatlly appreciated.

// cputest.c

#include <glibtop.h>
#include <glibtop/proclist.h>
#include <glibtop/procstate.h>
#include <glibtop/proctime.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>

int main(void)
glibtop_cpu cpu;
gint total_time =;
return total_time;

I use this command :
gcc -I/usr/include/libgtop-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include cpumain.c

and always return :

/tmp/ccGvToLC.o(.text+0x21): In function `main':
cpumain.c: undefined reference to `glibtop_global_server'
/tmp/ccGvToLC.o(.text+0x31):cpumain.c: undefined reference to `glibtop_get_cpu_l'
collect2: ld returned 1 exit status

I feel quite headache on this problem. And many thanks in advanced for any of your kindly help.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
a problem with libgtop wangjinyi Linux - Software 1 07-17-2007 08:59 AM
libGtop 2.8 wont install Scott7 Debian 3 10-18-2005 02:28 PM
Gdesklets and libgtop and FC4 x86_64 pafinator11 Linux - Software 1 08-15-2005 05:01 PM
libgtop message when installing gdesklets rosscopeeko Mandriva 1 08-23-2004 10:16 AM
GDesklets needs libgtop-2.0.pc on PKG_CONFIG_PATH lramos85 Linux - Software 1 02-11-2004 12:15 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration