Results 1 to 2 of 2
Hi
I want to run GTK+ helloworld program given in tutorial on redhat linux 9.
If i compile this program then I am getting following error:
[vineeta@vineeta sample]$ gcc helloworld.c ...
- 10-03-2007 #1Just Joined!
- Join Date
- Sep 2007
- Posts
- 46
error while compiling GTK+ helloworld program
Hi
I want to run GTK+ helloworld program given in tutorial on redhat linux 9.
If i compile this program then I am getting following error:
[vineeta@vineeta sample]$ gcc helloworld.c -o helloworld.c `pkg-config --cflags
--libs gtk+`
/tmp/ccvRRm5f.o(.text+0x80): In function `main':
: undefined reference to `G_CALLBACK'
/tmp/ccvRRm5f.o(.text+0x91): In function `main':
: undefined reference to `G_OBJECT'
/tmp/ccvRRm5f.o(.text+0x9a): In function `main':
: undefined reference to `g_signal_connect'
/tmp/ccvRRm5f.o(.text+0xac): In function `main':
: undefined reference to `G_CALLBACK'
/tmp/ccvRRm5f.o(.text+0xbd): In function `main':
: undefined reference to `G_OBJECT'
/tmp/ccvRRm5f.o(.text+0xc6): In function `main':
: undefined reference to `g_signal_connect'
/tmp/ccvRRm5f.o(.text+0x113): In function `main':
: undefined reference to `G_CALLBACK'
/tmp/ccvRRm5f.o(.text+0x124): In function `main':
: undefined reference to `G_OBJECT'
/tmp/ccvRRm5f.o(.text+0x12d): In function `main':
: undefined reference to `g_signal_connect'
/tmp/ccvRRm5f.o(.text+0x13b): In function `main':
: undefined reference to `G_OBJECT'
/tmp/ccvRRm5f.o(.text+0x14c): In function `main':
: undefined reference to `G_CALLBACK'
/tmp/ccvRRm5f.o(.text+0x15d): In function `main':
: undefined reference to `G_OBJECT'
/tmp/ccvRRm5f.o(.text+0x166): In function `main':
: undefined reference to `g_signal_connect_swapped'
collect2: ld returned 1 exit status
Program for creating simple window with button is running properly.Then why not this program is running???
Please help
vineeta7
- 10-03-2007 #2
Hi vineeta7 !
Duplicate Threads/Posts are not allowed. Its against Forum Rules. Please continue here only. Thread Locked.It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First


