gtk program compilation



Hi

I am trying to compile a very basic gtk program that will display a box.

But whenever i try to compile the program with the following line :

gcc -o base base.c 'gtk-config --cflags --libs'

i get lots of errors. A sample of some of the errors follows :

/usr/include/glib.h:491: parse error before "gssize" 
/usr/include/glib.h:492: parse error before "gsize" 
/usr/include/glib.h:493: parse error before "GQuark" 
/usr/include/glib.h:494: parse error before "GTime" 
/usr/include/glib.h:758: parse error before "key_id" 
/usr/include/glib.h:829: parse error before "guint8" 
/usr/include/glib.h:831: parse error before '}' token

There are a lot more that are too many to list here.

Any ideas on what could be wrong, because i would like to get into gtk 
development.

--
Matt

	Fear of a flat planet




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