I'm trying to learn GTK in C, so I wrote a very simple program, which follows:
#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;
} Kid stuff, right? So I think the problem is in my GTK libraries themselves. You see, when I compile this program using
gcc -o program program.c `gtk-config --cflags --libs`
I get
lots and
lots of output, mostly complaints about syntax and parse errors in the GTK header files. I'm assuming the good folks who wrote it are more careful than that, so I don't know what to think.
Does anybody know what this means?