problem in gtk programming

dark0s Optik shiftcoder at
Sat Oct 18 07:43:19 PDT 2008

I am triyng to programming with gtk over DragonFly.
My sample code is the follows:

#include <gtk/gtk.h>

int main(int argc, char* argv[]) {

  GtkWidget *window:

  gtk_init(&argc, &argv);

  window = gtk_window_new(GTK_WINDOW_TOPLEVEL);


  return 0;


The gcc output is:

#gcc prova.c -o prova
1:21: error: GtkWidget undeclared
5: error: window undeclared
9: GTK_WINDOW_TOP_LEVEL undeclared

#find / -name gtk.h

I mistake in including library?

What is the problem?


only the paranoid will survive

More information about the Users mailing list