GNOME Bugzilla – Bug 412331
GTK+ 2.0 Tutorial - C.3.2. scribble-xinput.c compile error
Last modified: 2010-05-20 19:58:38 UTC
gcc scribble-xinput.c -o scribble `pkg-config --cflags --libs gtk+-2.0` scribble-xinput.c:181: error: two or more data types in declaration of `main'. There is a minor typo/compile error in scribble-xinput.c Near the end of http://www.gtk.org/tutorial/x2928.html#AEN2933 the main function has too many return types. There is a: void int main () instead of just int main () An obvious fix.
This problem has been fixed in the development version, commit ae8c4b8f7b4f967e31d99235223026b8e37cd4fb The fix will be available in the next major software release. Thank you for your bug report.