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 libgtop-2.0.so 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.
gint total_time = cpu.total;
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.