Re: [gtk-list] tutorial: first chapter



Hi!

> Using egcs1.0.2, got gtk 0.99.9 I think.
> This is my error:
> bash$ cc -o first first.c
> /tmp/cca289461.o: In function `main':
> /tmp/cca289461.o(.text+0xf): undefined reference to `gtk_init'
> /tmp/cca289461.o(.text+0x19): undefined reference to `gtk_window_new'
> /tmp/cca289461.o(.text+0x2a): undefined reference to `gtk_widget_show'
> /tmp/cca289461.o(.text+0x32): undefined reference to `gtk_main'
> collect2: ld returned 1 exit status
> 
> I am not very knowlageable in the workings of my compiler so it could be
> user stupidity, but I still need help.
It is ;-)

try cc -o first first.c -L/usr/X11/lib -lX11 -lXext -lglib -lgdk -lgtk

Roni   (IRC: _crash)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]