Graphical C programming with GTK 2.0

Bob Van Zant bvanzant at ironport.com
Fri Dec 10 14:02:40 PST 2004


The attachments prove that the .pc file is installed, however, not where
pkg_config is looking. A workaround for this is to set the
PKG_CONFIG_PATH environment variable. See pkg-config(1).

The second attachment you gave, with the very small number of errors
looks to me like you've got a missing semi-colon or similar in your
main.c file (the "early" line number could also hint at a munged
#include). But this second run you gave shows that the problem you're
having is no longer with gtk/glib/pango but with your own code.

So either set the environment variable I mentioned above (consider a
makefile) or continue using the path to the .pc file that you've shown
to work and start debugging your app.

-Bob

On Fri, 2004-12-10 at 22:38 +0000, Frank Staals wrote:
> Bob Van Zant wrote:
> 
> >The output you pasted below used single quotes instead of backticks for
> >the pkg_config portion of the argument. Single quote: ', backtick `.
> >
> >I'm not sure why you used single quotes there, because your examples in
> >your email used backticks.
> >
> >Also, it looks like you're missing some of the glib and pango libraries.
> >However, once you get your pkg_config part working right the include
> >directories might get set right and it might actually compile. Good
> >luck.
> >
> >-Bob
> >
> >  
> >
> Hmm I copied the examples into this e-mail, but when I use ` statements 
> I get error_gtk2.txt (attachment ) then I tried to compile it like this: 
> gcc mainwindow.c -o mainwindow -I/usr/X11R6/include/gtk-2.0/ `pkg-config 
> --cflags --libs /usr/X11R6/libdata/pkgconfig/gtk+-2.0.pc` That gave 
> error_gtk3.txt ( attachment )
> 
> What do I have to do to compile it correct ?
> 
> ===================================================================
>        This footer was appended by the Honeypot Injector
>        The message was injected from 216.136.204.119
>        on 10 Dec 2004 13:39:14 -0800.  This IP
>        was classified in the WHITELIST sender group.
>        The org ID is 1681939, and the SBRS is 2.1
> ===================================================================
> plain text document attachment (error_gtk2.txt)
> bash-3.00$ gcc mainwindow.c -o mainwindow -I/usr/X11R6/include/gtk-2.0/ `pkg-config --cflags --libs gtk+2.0`
> gnome-config: not found
> Package gtk+2.0 was not found in the pkg-config search path.
> Perhaps you should add the directory containing `gtk+2.0.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'gtk+2.0' found
> In file included from /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:4,
>                  from /usr/X11R6/include/gtk-2.0/gdk/gdk.h:30,
>                  from /usr/X11R6/include/gtk-2.0/gtk/gtk.h:31,
>                  from mainwindow.c:1:
> /usr/X11R6/include/gtk-2.0/gdk/gdktypes.h:32:18: glib.h: No such file or directory
> /usr/X11R6/include/gtk-2.0/gdk/gdktypes.h:33:25: pango/pango.h: No such file or directory
> /usr/X11R6/include/gtk-2.0/gdk/gdktypes.h:34:25: glib-object.h: No such file or directory
> In file included from /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:4,
>                  from /usr/X11R6/include/gtk-2.0/gdk/gdk.h:30,
>                  from /usr/X11R6/include/gtk-2.0/gtk/gtk.h:31,
>                  from mainwindow.c:1:
> /usr/X11R6/include/gtk-2.0/gdk/gdktypes.h:76: error: syntax error before "GdkWChar"
> /usr/X11R6/include/gtk-2.0/gdk/gdktypes.h:76: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk/gdktypes.h:89: error: syntax error before "GdkNativeWindow"
> /usr/X11R6/include/gtk-2.0/gdk/gdktypes.h:89: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk/gdktypes.h:170: error: syntax error before "data"
> /usr/X11R6/include/gtk-2.0/gdk/gdktypes.h:174: error: syntax error before "data"
> /usr/X11R6/include/gtk-2.0/gdk/gdktypes.h:178: error: syntax error before "gint"
> /usr/X11R6/include/gtk-2.0/gdk/gdktypes.h:184: error: syntax error before "gint"
> /usr/X11R6/include/gtk-2.0/gdk/gdktypes.h:192: error: syntax error before "gint"
> /usr/X11R6/include/gtk-2.0/gdk/gdktypes.h:200: error: syntax error before "gint"
> In file included from /usr/X11R6/include/gtk-2.0/gdk/gdk.h:30,
>                  from /usr/X11R6/include/gtk-2.0/gtk/gtk.h:31,
>                  from mainwindow.c:1:
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:19: error: syntax error before "guint32"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:41: error: syntax error before "GObject"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:50: error: syntax error before "gpointer"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:55: error: syntax error before "GObjectClass"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:59: error: syntax error before "gdk_colormap_get_type"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:59: error: syntax error before "G_GNUC_CONST"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:59: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:62: error: syntax error before "gboolean"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:76: error: syntax error before "gdk_colormap_get_system_size"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:76: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:82: error: syntax error before "gint"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:85: error: syntax error before "gdk_colormap_alloc_colors"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:87: error: syntax error before "gint"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:90: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:91: error: syntax error before "gdk_colormap_alloc_color"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:93: error: syntax error before "gboolean"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:94: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:97: error: syntax error before "gint"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:99: error: syntax error before "gulong"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:106: error: syntax error before "gdk_color_parse"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:106: error: syntax error before '*' token
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:107: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:108: error: syntax error before "gdk_color_hash"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:108: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:109: error: syntax error before "gdk_color_equal"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:110: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:112: error: syntax error before "gdk_color_get_type"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:112: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:118: error: syntax error before "gint"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:119: error: syntax error before "gdk_color_white"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:120: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:121: error: syntax error before "gdk_color_black"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:122: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:123: error: syntax error before "gdk_color_alloc"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:124: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:125: error: syntax error before "gdk_color_change"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:126: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:131: error: syntax error before "gdk_colors_alloc"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:132: error: syntax error before "gboolean"
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:136: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk/gdkcolor.h:138: error: syntax error before "gulong"
> In file included from /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:30,
>                  from /usr/X11R6/include/gtk-2.0/gdk/gdkcursor.h:5,
>                  from /usr/X11R6/include/gtk-2.0/gdk/gdk.h:31,
>                  from /usr/X11R6/include/gtk-2.0/gtk/gtk.h:31,
>                  from mainwindow.c:1:
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-features.h:36: error: syntax error before "gdk_pixbuf_major_version"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-features.h:36: warning: data definition has no type or storage class
> In file included from /usr/X11R6/include/gtk-2.0/gdk/gdkcursor.h:5,
>                  from /usr/X11R6/include/gtk-2.0/gdk/gdk.h:31,
>                  from /usr/X11R6/include/gtk-2.0/gtk/gtk.h:31,
>                  from mainwindow.c:1:
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:38: error: syntax error before "typedef"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:70: error: syntax error before '*' token
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:88: error: syntax error before "gdk_pixbuf_error_quark"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:88: error: syntax error before "G_GNUC_CONST"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:88: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:92: error: syntax error before "gdk_pixbuf_get_type"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:92: error: syntax error before "G_GNUC_CONST"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:92: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:105: error: syntax error before "gdk_pixbuf_get_has_alpha"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:105: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:107: error: syntax error before '*' token
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:107: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:115: error: syntax error before "gboolean"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:132: error: syntax error before "GError"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:137: error: syntax error before "GError"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:139: error: syntax error before '*' token
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:149: error: syntax error before "data_length"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:156: error: syntax error before "guint32"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:160: error: syntax error before "gdk_pixbuf_save"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:163: error: syntax error before "GError"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:164: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:166: error: syntax error before "gdk_pixbuf_savev"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:171: error: syntax error before "GError"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:171: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:175: error: syntax error before '*' token
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:181: error: syntax error before "GdkPixbufSaveFunc"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:185: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:187: error: syntax error before "gdk_pixbuf_save_to_callbackv"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:188: error: syntax error before "GdkPixbufSaveFunc"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:193: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:197: error: syntax error before "gdk_pixbuf_save_to_buffer"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:198: error: syntax error before "gchar"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:202: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:204: error: syntax error before "gdk_pixbuf_save_to_bufferv"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:205: error: syntax error before "gchar"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:210: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:213: error: syntax error before "gboolean"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:226: error: syntax error before "gfloat"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:282: error: syntax error before "guint32"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:296: error: syntax error before "guint32"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:303: error: syntax error before "gdk_pixbuf_animation_get_type"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:303: error: syntax error before "G_GNUC_CONST"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:303: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:306: error: syntax error before "GError"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:315: error: syntax error before "gdk_pixbuf_animation_is_static_image"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:315: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:319: error: syntax error before '*' token
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:320: error: syntax error before "gdk_pixbuf_animation_iter_get_type"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:320: error: syntax error before "G_GNUC_CONST"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:320: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:323: error: syntax error before "gdk_pixbuf_animation_iter_on_currently_loading_frame"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:323: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:324: error: syntax error before "gdk_pixbuf_animation_iter_advance"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:325: error: syntax error before '*' token
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:325: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:330: error: syntax error before "gchar"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:331: error: syntax error before '*' token
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:331: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:337: error: syntax error before '*' token
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:337: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:338: error: syntax error before '*' token
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:338: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:339: error: syntax error before '*' token
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:339: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:340: error: syntax error before '*' token
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:340: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:341: error: syntax error before '*' token
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:341: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:342: error: syntax error before "gdk_pixbuf_format_is_writable"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:342: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:344: error: syntax error before '*' token
> In file included from /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:350,
>                  from /usr/X11R6/include/gtk-2.0/gdk/gdkcursor.h:5,
>                  from /usr/X11R6/include/gtk-2.0/gdk/gdk.h:31,
>                  from /usr/X11R6/include/gtk-2.0/gtk/gtk.h:31,
>                  from mainwindow.c:1:
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h:29: error: syntax error before "G_BEGIN_DECLS"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h:39: error: syntax error before "typedef"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h:42: error: syntax error before "GObject"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h:51: error: syntax error before "GObjectClass"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h:69: error: syntax error before "gdk_pixbuf_loader_get_type"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h:69: error: syntax error before "G_GNUC_CONST"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h:69: warning: data definition has no type or storageclass
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h:72: error: syntax error before "GError"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h:74: error: syntax error before "GError"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h:78: error: syntax error before "gdk_pixbuf_loader_write"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h:79: error: syntax error before '*' token
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h:81: warning: data definition has no type or storageclass
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h:84: error: syntax error before "gdk_pixbuf_loader_close"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h:85: error: syntax error before "GError"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h:85: warning: data definition has no type or storageclass
> In file included from /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:351,
>                  from /usr/X11R6/include/gtk-2.0/gdk/gdkcursor.h:5,
>                  from /usr/X11R6/include/gtk-2.0/gdk/gdk.h:31,
>                  from /usr/X11R6/include/gtk-2.0/gtk/gtk.h:31,
>                  from mainwindow.c:1:
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h:9: error: syntax error before "G_BEGIN_DECLS"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h:13: warning: data definition has no type or storage class
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h:16: error: syntax error before "gdk_colorspace_get_type"
> /usr/X11R6/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h:16: warning: data definition has no type or storage class
> plain text document attachment (error_gtk3.txt)
> bash-3.00$ gcc mainwindow.c -o mainwindow -I/usr/X11R6/include/gtk-2.0/ `pkg-config --cflags --libs /usr/X11R6/libdata/pkgconfig/gtk+-2.0.pc`
> mainwindow.c:3: error: syntax error before "int"
> mainwindow.c: In function `main':
> mainwindow.c:5: error: syntax error before ':' token
> mainwindow.c:9: error: `window' undeclared (first use in this function)
> mainwindow.c:9: error: (Each undeclared identifier is reported only once
> mainwindow.c:9: error: for each function it appears in.)
> mainwindow.c:15:2: warning: no newline at end of file
> bash-3.00$
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"



More information about the freebsd-questions mailing list