Hi all,
I have problem with libgtop , i am using fedora core2, while compiling my application the following error i am getting,
/tmp/ccggBu9l.o(.text+0x23): In function `main':
: undefined reference to `glibtop_init_r(_glibtop**, unsigned long, unsigned)'
collect2: ld returned 1 exit status

i compiled as follows:
g++ df.cpp -I /usr/local/include/libgtop-2.0 -I /usr/include/glib-2.0 -I /usr/lib/glib-2.0/include -lglib-2.0 -lgtop-2.0

please tell me why the above error coming.

if i use the gcc instead of g++ , the above error not occurring.
gcc df.c -I /usr/local/include/libgtop-2.0 -I /usr/include/glib-2.0 -I /usr/lib/glib-2.0/include -lglib-2.0 -lgtop-2.0