Re: learning gtk.. using sams examples :)
- From: Maciej Hrebien <m_hrebien wp pl>
- To: gtk-app-devel-list gnome org
- Subject: Re: learning gtk.. using sams examples :)
- Date: Wed, 19 Sep 2001 11:20:54 +0200
mdew 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 status
The linker can't see definitions of those functions in Your code.
/* 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! :)
--
Maciej Hrebien
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]