calling functions defined in gtk's source file



hello I want to call in my application functions like gtk_window_show,
gtk_widget_real_show and others I've downloaded gtk source and the
distributions patches
however I get an linkage error undefined reference to gtk_window_show. I'm
using make and it's file looks like

$(AGS_DIR)ags: $(AGS_OBJECTS)
        gcc -o $(AGS_DIR)ags -ldl $(AGS_OBJECTS) $(LDADD)

$(AGS_DIR)ags_window.o: $(AGS_DIR)ags_window.[ch]
$(GTK_DIR)gtk/gtkwindow.[ch]
        gcc ags_window.c -o ags_window.o $()

...

the c file

void
ags_window_class_init(AgsWindow *window)
{
  GtkWidgetClass *widget = (GtkWidgetClass *) window;

  widget->show = ags_window_show;
}

void
ags_window_show(GtkWidget *widget)
{
  gtk_window_show(widget);
}

you can visit my project at http://mitglied.lycos.de/joel2001k/ags/download/



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