On Wed, 19 Sep 2001 11:20:54 +0200 Maciej Hrebien <m_hrebien wp pl> wrote:
$ gcc itemfac.c -Wall -o base `gtk-config --libs --cflags` /tmp/ccB5KkZJ.o: In function `main': /tmp/ccB5KkZJ.o(.text+0x338): undefined reference to `dialog_delete_handler' /tmp/ccB5KkZJ.o(.text+0x386): undefined reference to `delete_event_handler' /tmp/ccB5KkZJ.o(.text+0x3d4): undefined reference to `print_and_quit' /tmp/ccB5KkZJ.o(.text+0x50a): undefined reference to `line_plot' /tmp/ccB5KkZJ.o(.rodata+0x98): undefined reference to `print_and_quit' collect2: ld returned 1 exit statusThe linker can't see definitions of those functions in Your code.
ummm i kinda need some help on this one.. so how can i make it see them? i can see them :)
/* Callbacks */ void line_plot( GtkMenuItem *was_clicked, GtkWidget *where_to_draw ); void print_and_quit( GtkButton *was_clicked, gpointer user_data ); gboolean delete_event_handler( GtkWidget *widget, GdkEvent *event, gpointer user_data ); gboolean dialog_delete_handler( GtkWidget *widget, GdkEvent *event, gpointer user_data );Me too. You propably forgot to write functions body! :)
not my code, its a direct copy of sams learn gtk+ in 21 days tutorial,..im only new this gtk+ thing :/ Book: http://www.samspublishing.com/detail_sams.cfm?item=0672318296 Source: http://www.samspublishing.com/display_sams.cfm?item=0672318296&itemhdr=Source%20Code&itemloc=sourcecode -- id: 9DF3262C key fingerprint: B556 04DA CFD9 78DD 9215 A970 8196 FB6D 9DF3 262C
Attachment:
pgpB0LK0YY60C.pgp
Description: PGP signature