After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 412331 - GTK+ 2.0 Tutorial - C.3.2. scribble-xinput.c compile error
GTK+ 2.0 Tutorial - C.3.2. scribble-xinput.c compile error
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
unspecified
Other All
: Normal trivial
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2007-02-26 18:02 UTC by Richard Rega
Modified: 2010-05-20 19:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Richard Rega 2007-02-26 18:02:30 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.
Comment 1 Javier Jardón (IRC: jjardon) 2010-05-20 19:58:38 UTC
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.