On Mon, Apr 07, 2008 at 11:54:16AM +0200, Zbigniew Baniewski wrote: > Trying to compile a simple example taken from: > > http://library.gnome.org/devel/gtk-tutorial/stable/c39.html#SEC-HELLOWORLD > > ...code below... > > #v+ > #include <gtk/gtk.h> > > int main( int argc, > char *argv[] ) > { > GtkWidget *window; > gtk_init (&argc, &argv); > window = gtk_window_new (GTK_WINDOW_TOPLEVEL); > gtk_widget_show (window); > gtk_main (); > return 0; > } > #v- > > ...I've got in return a lot of errors (below). Of course, it's not possible, > that GTK2 in OpenBSD 4.2 is in "totally broken" state ;) - so I'm just > missing something. But what exactly? "pkg-config" seems to "see" all the > needed included files and libraries. So, why so much error messages?
Why don't you give us the most important piece ? that is, pkg-config output, and instead a huge amount of meaningless error message. > > #v+ > [EMAIL PROTECTED] cc base.c -o base `pkg-config --cflags --libs gtk+-2.0` > > In file included from /usr/local/include/gtk-2.0/gdk/gdktypes.h:32, > from /usr/local/include/gtk-2.0/gdk/gdkcolor.h:31, > from /usr/local/include/gtk-2.0/gdk/gdkcairo.h:23, > from /usr/local/include/gtk-2.0/gdk/gdk.h:30, > from /usr/local/include/gtk-2.0/gtk/gtk.h:31, > from base.c:1: > /usr/local/include/glib-1.2/glib.h:510: error: conflicting types for `gssize' > /usr/local/lib/glib-2.0/include/glibconfig.h:58: error: previous declaration > of `gssize' So you picked up some glib 1.2 stuff. I really don't see how.