Results 1 to 1 of 1
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-09-2009 #1Just Joined!
- Join Date
- Jan 2009
- Posts
- 3
libgtop error , please give me solution
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
Thanks,
barani


Reply With Quote
