Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
When I run the following program #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); } I get the error like this [root@localhost temp]# gcc ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! Naveen Kumar D's Avatar
    Join Date
    Nov 2006
    Location
    India
    Posts
    56

    Angry Compilation problem


    When I run the following program

    #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);
    }

    I get the error like this
    [root@localhost temp]# gcc -o test test.c `pkg-config -cflags -libs gtk+-2.0`
    -cflags: unknown option
    test.c:1:20: gtk/gtk.h: No such file or directory
    test.c: In function `main':
    test.c:4: error: `GtkWidget' undeclared (first use in this function)
    test.c:4: error: (Each undeclared identifier is reported only once
    test.c:4: error: for each function it appears in.)
    test.c:4: error: `window' undeclared (first use in this function)
    test.c:6: error: `GTK_WINDOW_TOPLEVEL' undeclared (first use in this function)

    Please help me regarding this.

  2. #2
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    Hey,

    Make sure that ur gtk.h path is correct.
    Try
    ls /usr/include/gtk*
    if it is gtk-2.0, then use
    #include <gtk-2.0/gtk/gtk.h>
    or so...
    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

  3. #3
    Just Joined! Naveen Kumar D's Avatar
    Join Date
    Nov 2006
    Location
    India
    Posts
    56

    Angry Reply

    gtk.h is placed in /usr/include/gtk-2.0/gtk/ By including this as a header file
    I get the o/p like this

    [root@localhost ~]# gcc temp.c -o temp `pkg-config -cflags -libs gtk+-2.0`
    -cflags: unknown option
    In file included from temp.c:1:
    /usr/include/gtk-2.0/gtk/gtk.h:31:21: gdk/gdk.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:32:31: gtk/gtkaccelgroup.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:33:31: gtk/gtkaccellabel.h: No such file or direc tory
    /usr/include/gtk-2.0/gtk/gtk.h:34:29: gtk/gtkaccelmap.h: No such file or directo ry
    /usr/include/gtk-2.0/gtk/gtk.h:35:31: gtk/gtkaccessible.h: No such file or direc tory
    /usr/include/gtk-2.0/gtk/gtk.h:36:27: gtk/gtkaction.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:37:32: gtk/gtkactiongroup.h: No such file or dire ctory
    /usr/include/gtk-2.0/gtk/gtk.h:38:31: gtk/gtkadjustment.h: No such file or direc tory
    /usr/include/gtk-2.0/gtk/gtk.h:39:30: gtk/gtkalignment.h: No such file or direct ory
    /usr/include/gtk-2.0/gtk/gtk.h:40:26: gtk/gtkarrow.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:41:32: gtk/gtkaspectframe.h: No such file or dire ctory
    /usr/include/gtk-2.0/gtk/gtk.h:42:25: gtk/gtkbbox.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:43:24: gtk/gtkbin.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:44:29: gtk/gtkbindings.h: No such file or directo ry
    /usr/include/gtk-2.0/gtk/gtk.h:45:24: gtk/gtkbox.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:46:27: gtk/gtkbutton.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:47:29: gtk/gtkcalendar.h: No such file or directo ry
    /usr/include/gtk-2.0/gtk/gtk.h:48:31: gtk/gtkcelllayout.h: No such file or direc tory
    /usr/include/gtk-2.0/gtk/gtk.h:49:33: gtk/gtkcellrenderer.h: No such file or dir ectory
    /usr/include/gtk-2.0/gtk/gtk.h:50:39: gtk/gtkcellrendererpixbuf.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:51:37: gtk/gtkcellrenderertext.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:52:39: gtk/gtkcellrenderertoggle.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:53:32: gtk/gtkcheckbutton.h: No such file or dire ctory
    /usr/include/gtk-2.0/gtk/gtk.h:54:34: gtk/gtkcheckmenuitem.h: No such file or di rectory
    /usr/include/gtk-2.0/gtk/gtk.h:55:30: gtk/gtkclipboard.h: No such file or direct ory
    /usr/include/gtk-2.0/gtk/gtk.h:56:26: gtk/gtkclist.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:57:32: gtk/gtkcolorbutton.h: No such file or dire ctory
    /usr/include/gtk-2.0/gtk/gtk.h:58:29: gtk/gtkcolorsel.h: No such file or directo ry
    /usr/include/gtk-2.0/gtk/gtk.h:59:35: gtk/gtkcolorseldialog.h: No such file or d irectory
    /usr/include/gtk-2.0/gtk/gtk.h:60:26: gtk/gtkcombo.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:61:29: gtk/gtkcombobox.h: No such file or directo ry
    /usr/include/gtk-2.0/gtk/gtk.h:62:34: gtk/gtkcomboboxentry.h: No such file or di rectory
    /usr/include/gtk-2.0/gtk/gtk.h:63:30: gtk/gtkcontainer.h: No such file or direct ory
    /usr/include/gtk-2.0/gtk/gtk.h:64:26: gtk/gtkctree.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:65:26: gtk/gtkcurve.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:66:27: gtk/gtkdialog.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:67:24: gtk/gtkdnd.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:68:32: gtk/gtkdrawingarea.h: No such file or dire ctory
    /usr/include/gtk-2.0/gtk/gtk.h:69:29: gtk/gtkeditable.h: No such file or directo ry
    /usr/include/gtk-2.0/gtk/gtk.h:70:26: gtk/gtkentry.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:71:36: gtk/gtkentrycompletion.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:72:26: gtk/gtkenums.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:73:29: gtk/gtkeventbox.h: No such file or directo ry
    /usr/include/gtk-2.0/gtk/gtk.h:74:29: gtk/gtkexpander.h: No such file or directo ry
    /usr/include/gtk-2.0/gtk/gtk.h:75:28: gtk/gtkfilesel.h: No such file or director y
    /usr/include/gtk-2.0/gtk/gtk.h:76:26: gtk/gtkfixed.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:77:38: gtk/gtkfilechooserdialog.h: No such file o r directory
    /usr/include/gtk-2.0/gtk/gtk.h:78:38: gtk/gtkfilechooserwidget.h: No such file o r directory
    /usr/include/gtk-2.0/gtk/gtk.h:79:31: gtk/gtkfontbutton.h: No such file or direc tory
    /usr/include/gtk-2.0/gtk/gtk.h:80:28: gtk/gtkfontsel.h: No such file or director y
    /usr/include/gtk-2.0/gtk/gtk.h:81:26: gtk/gtkframe.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:82:26: gtk/gtkgamma.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:83:23: gtk/gtkgc.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:84:30: gtk/gtkhandlebox.h: No such file or direct ory
    /usr/include/gtk-2.0/gtk/gtk.h:85:26: gtk/gtkhbbox.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:86:25: gtk/gtkhbox.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:87:27: gtk/gtkhpaned.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:88:27: gtk/gtkhruler.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:89:27: gtk/gtkhscale.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:90:31: gtk/gtkhscrollbar.h: No such file or direc tory
    /usr/include/gtk-2.0/gtk/gtk.h:91:31: gtk/gtkhseparator.h: No such file or direc tory
    /usr/include/gtk-2.0/gtk/gtk.h:92:32: gtk/gtkiconfactory.h: No such file or dire ctory
    /usr/include/gtk-2.0/gtk/gtk.h:93:30: gtk/gtkicontheme.h: No such file or direct ory
    /usr/include/gtk-2.0/gtk/gtk.h:94:26: gtk/gtkimage.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:95:34: gtk/gtkimagemenuitem.h: No such file or di rectory
    /usr/include/gtk-2.0/gtk/gtk.h:96:30: gtk/gtkimcontext.h: No such file or direct ory
    /usr/include/gtk-2.0/gtk/gtk.h:97:36: gtk/gtkimcontextsimple.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:98:35: gtk/gtkimmulticontext.h: No such file or d irectory
    /usr/include/gtk-2.0/gtk/gtk.h:99:32: gtk/gtkinputdialog.h: No such file or dire ctory
    /usr/include/gtk-2.0/gtk/gtk.h:100:30: gtk/gtkinvisible.h: No such file or direc tory
    /usr/include/gtk-2.0/gtk/gtk.h:101:25: gtk/gtkitem.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:102:32: gtk/gtkitemfactory.h: No such file or dir ectory
    /usr/include/gtk-2.0/gtk/gtk.h:103:26: gtk/gtklabel.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:104:27: gtk/gtklayout.h: No such file or director y
    /usr/include/gtk-2.0/gtk/gtk.h:105:25: gtk/gtklist.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:106:29: gtk/gtklistitem.h: No such file or direct ory
    /usr/include/gtk-2.0/gtk/gtk.h:107:30: gtk/gtkliststore.h: No such file or direc tory
    /usr/include/gtk-2.0/gtk/gtk.h:108:25: gtk/gtkmain.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:109:25: gtk/gtkmenu.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:110:28: gtk/gtkmenubar.h: No such file or directo ry
    /usr/include/gtk-2.0/gtk/gtk.h:111:29: gtk/gtkmenuitem.h: No such file or direct ory
    /usr/include/gtk-2.0/gtk/gtk.h:112:30: gtk/gtkmenushell.h: No such file or direc tory
    /usr/include/gtk-2.0/gtk/gtk.h:113:34: gtk/gtkmessagedialog.h: No such file or d irectory
    /usr/include/gtk-2.0/gtk/gtk.h:114:25: gtk/gtkmisc.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:115:29: gtk/gtknotebook.h: No such file or direct ory
    /usr/include/gtk-2.0/gtk/gtk.h:116:27: gtk/gtkobject.h: No such file or director y
    /usr/include/gtk-2.0/gtk/gtk.h:117:32: gtk/gtkoldeditable.h: No such file or dir ectory
    /usr/include/gtk-2.0/gtk/gtk.h:118:31: gtk/gtkoptionmenu.h: No such file or dire ctory
    /usr/include/gtk-2.0/gtk/gtk.h:119:26: gtk/gtkpaned.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:120:27: gtk/gtkpixmap.h: No such file or director y
    /usr/include/gtk-2.0/gtk/gtk.h:121:25: gtk/gtkplug.h: No such file or directory
    /usr/include/gtk-2.0/gtk/gtk.h:122:28: gtk/gtkpreview.h: No such file or directo ry
    /usr/include/gtk-2.0/gtk/gtk.h:123:29: gtk/gtkprogress.h: No such file or direct ory
    /usr/include/gtk-2.0/gtk/gtk.h:124:32: gtk/gtkprogressbar.h: No such file or dir ectory
    /usr/include/gtk-2.0/gtk/gtk.h:125:32: gtk/gtkradioaction.h: No such file or dir ectory
    /usr/include/gtk-2.0/gtk/gtk.h:126:32: gtk/gtkradiobutton.h: No such file or dir ectory
    /usr/include/gtk-2.0/gtk/gtk.h:127:34: gtk/gtkradiomenuitem.h: No such file or d irectory
    /usr/include/gtk-2.0/gtk/gtk.h:128:36: gtk/gtkradiotoolbutton.h: No such file or directory

    temp.c: In function `main':
    temp.c:4: error: `GtkWidget' undeclared (first use in this function)
    temp.c:4: error: (Each undeclared identifier is reported only once
    temp.c:4: error: for each function it appears in.)
    temp.c:4: error: `window' undeclared (first use in this function)
    temp.c:6: error: `GTK_WINDOW_TOPLEVEL' undeclared (first use in this function)
    [root@localhost ~]#

  4. #4
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    Again, please check if you have gdk in /usr/include.

    To resolve gtk path issue, create a soft link to gtk-2.0/gtk as gtk in /usr/include directory.
    cd /usr/include/
    ln -s /usr/include/gtk-2.0/gtk/ gtk
    Hope this helps
    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

  5. #5
    Just Joined! Naveen Kumar D's Avatar
    Join Date
    Nov 2006
    Location
    India
    Posts
    56

    Angry reply

    I searched for the gdk in /usr/include, but it is not there. Also i created
    symbolic link what u said. After this I got o/p like this.


    In file included from test.c:1:
    /usr/include/gtk-2.0/gtk/gtk.h:31:21: gdk/gdk.h: No such file or directory
    In file included from /usr/include/gtk/gtkaccelgroup.h:32,
    from /usr/include/gtk-2.0/gtk/gtk.h:32,
    from test.c:1:
    /usr/include/gtk/gtkenums.h:30:25: glib-object.h: No such file or directory
    In file included from /usr/include/gtk/gtkaccelgroup.h:32,
    from /usr/include/gtk-2.0/gtk/gtk.h:32,
    from test.c:1:
    /usr/include/gtk/gtkenums.h:307: error: `G_SIGNAL_RUN_FIRST' undeclared here (not in a function)
    /usr/include/gtk/gtkenums.h:307: error: enumerator value for `GTK_RUN_FIRST' not integer constant
    /usr/include/gtk/gtkenums.h:308: error: `G_SIGNAL_RUN_LAST' undeclared here (not in a function)
    /usr/include/gtk/gtkenums.h:308: error: enumerator value for `GTK_RUN_LAST' not integer constant
    /usr/include/gtk/gtkenums.h:310: error: `G_SIGNAL_NO_RECURSE' undeclared here (not in a function)
    /usr/include/gtk/gtkenums.h:310: error: enumerator value for `GTK_RUN_NO_RECURSE' not integer constant
    /usr/include/gtk/gtkenums.h:311: error: `G_SIGNAL_ACTION' undeclared here (not in a function)
    /usr/include/gtk/gtkenums.h:311: error: enumerator value for `GTK_RUN_ACTION' not integer constant
    /usr/include/gtk/gtkenums.h:313: error: `G_SIGNAL_NO_HOOKS' undeclared here (not in a function)
    /usr/include/gtk/gtkenums.h:313: error: enumerator value for `GTK_RUN_NO_HOOKS' not integer constant
    In file included from /usr/include/gtk-2.0/gtk/gtk.h:32,
    from test.c:1:
    /usr/include/gtk/gtkaccelgroup.h:47: error: syntax error before "typedef"
    /usr/include/gtk/gtkaccelgroup.h:60: error: syntax error before '*' token
    /usr/include/gtk/gtkaccelgroup.h:61: error: syntax error before "GObject"
    /usr/include/gtk/gtkaccelgroup.h:63: error: `gboolean' declared as function returning a function
    /usr/include/gtk/gtkaccelgroup.h:66: error: syntax error before "GClosure"
    /usr/include/gtk/gtkaccelgroup.h:67: error: `GtkAccelGroupFindFunc' declared as function returning a function
    /usr/include/gtk/gtkaccelgroup.h:71: error: syntax error before "GObject"
    /usr/include/gtk/gtkaccelgroup.h:73: error: syntax error before "modifier_mask"
    /usr/include/gtk/gtkaccelgroup.h:74: error: syntax error before '*' token
    /usr/include/gtk/gtkaccelgroup.h:75: error: syntax error before "n_accels"
    /usr/include/gtk/gtkaccelgroup.h:77: error: syntax error before '}' token
    /usr/include/gtk/gtkaccelgroup.h:81: error: syntax error before "GObjectClass"
    /usr/include/gtk/gtkaccelgroup.h:84: error: syntax error before "guint"
    /usr/include/gtk/gtkaccelgroup.h:93: error: syntax error before '}' token
    /usr/include/gtk/gtkaccelgroup.h:97: error: syntax error before "guint"
    /usr/include/gtk/gtkaccelgroup.h:99: error: syntax error before "accel_flags"
    /usr/include/gtk/gtkaccelgroup.h:104: error: syntax error before "gtk_accel_group_get_type"
    /usr/include/gtk/gtkaccelgroup.h:109: error: syntax error before "guint"
    /usr/include/gtk/gtkaccelgroup.h:114: error: syntax error before '*' token
    /usr/include/gtk/gtkaccelgroup.h:117: error: syntax error before "GClosure"
    /usr/include/gtk/gtkaccelgroup.h:117: error: `gtk_accel_group_disconnect' declared as function returning a function
    /usr/include/gtk/gtkaccelgroup.h:119: error: syntax error before "guint"
    /usr/include/gtk/gtkaccelgroup.h:120: error: `gtk_accel_group_disconnect_key' declared as function returning a function
    /usr/include/gtk/gtkaccelgroup.h:122: error: syntax error before "GQuark"
    /usr/include/gtk/gtkaccelgroup.h:125: error: `gtk_accel_group_activate' declared as function returning a function
    /usr/include/gtk/gtkaccelgroup.h:130: error: syntax error before "GObject"
    /usr/include/gtk/gtkaccelgroup.h:132: error: syntax error before "GObject"
    /usr/include/gtk/gtkaccelgroup.h:133: error: syntax error before '*' token
    /usr/include/gtk/gtkaccelgroup.h:135: error: `gtk_accel_groups_activate' declared as function returning a function
    /usr/include/gtk/gtkaccelgroup.h:136: error: syntax error before '*' token
    /usr/include/gtk/gtkaccelgroup.h:136: error: syntax error before '*' token
    /usr/include/gtk/gtkaccelgroup.h:139: error: syntax error before "gpointer"
    /usr/include/gtk/gtkaccelgroup.h:140: error: syntax error before '*' token
    /usr/include/gtk/gtkaccelgroup.h:144: error: syntax error before "keyval"
    /usr/include/gtk/gtkaccelgroup.h:146: error: syntax error before '*' token
    /usr/include/gtk/gtkaccelgroup.h:149: error: syntax error before '*' token
    /usr/include/gtk/gtkaccelgroup.h:149: error: syntax error before "accelerator_key"
    /usr/include/gtk/gtkaccelgroup.h:151: error: syntax error before "default_mod_mask"
    /usr/include/gtk/gtkaccelgroup.h:152: error: syntax error before "gtk_accelerator_get_default_mod_mask"
    /usr/include/gtk/gtkaccelgroup.h:157: error: syntax error before "guint"
    /usr/include/gtk/gtkaccelgroup.h:162: error: syntax error before "GQuark"
    /usr/include/gtk/gtkaccelgroup.h:166: error: field `key' has incomplete type
    /usr/include/gtk/gtkaccelgroup.h:167: error: syntax error before "GClosure"
    In file included from /usr/include/gtk/gtkobject.h:32,
    from /usr/include/gtk/gtkwidget.h:32,
    from /usr/include/gtk/gtkmisc.h:32,
    from /usr/include/gtk/gtklabel.h:31,
    from /usr/include/gtk/gtkaccellabel.h:34,
    from /usr/include/gtk-2.0/gtk/gtk.h:33,
    from test.c:1:
    /usr/include/gtk/gtktypeutils.h:34: error: syntax error before "G_BEGIN_DECLS"
    /usr/include/gtk/gtktypeutils.h:62: error: syntax error before "typedef"
    /usr/include/gtk/gtktypeutils.h:89: error: syntax error before "GtkType"
    /usr/include/gtk/gtktypeutils.h:93: error: syntax error before "GtkTypeObject"
    /usr/include/gtk/gtktypeutils.h:94: error: syntax error before "GtkTypeClass"
    /usr/include/gtk/gtktypeutils.h:95: error: syntax error before "GtkClassInitFunc"
    /usr/include/gtk/gtktypeutils.h:96: error: syntax error before "GtkObjectInitFunc"
    In file included from /usr/include/gtk/gtktypeutils.h:104,
    from /usr/include/gtk/gtkobject.h:32,
    from /usr/include/gtk/gtkwidget.h:32,
    from /usr/include/gtk/gtkmisc.h:32,
    from /usr/include/gtk/gtklabel.h:31,
    from /usr/include/gtk/gtkaccellabel.h:34,
    from /usr/include/gtk-2.0/gtk/gtk.h:33,
    from test.c:1:
    /usr/include/gtk/gtktypebuiltins.h:9: error: syntax error before "G_BEGIN_DECLS"
    /usr/include/gtk/gtktypebuiltins.h:18: error: syntax error before "gtk_calendar_display_options_get_type"
    /usr/include/gtk/gtktypebuiltins.h:23: error: syntax error before "gtk_cell_renderer_state_get_type"
    /usr/include/gtk/gtktypebuiltins.h:26: error: syntax error before "gtk_cell_renderer_mode_get_type"
    /usr/include/gtk/gtktypebuiltins.h:31: error: syntax error before "gtk_cell_type_get_type"
    /usr/include/gtk/gtktypebuiltins.h:34: error: syntax error before "gtk_clist_drag_pos_get_type"
    /usr/include/gtk/gtktypebuiltins.h:37: error: syntax error before "gtk_button_action_get_type"
    /usr/include/gtk/gtktypebuiltins.h:42: error: syntax error before "gtk_ctree_pos_get_type"
    /usr/include/gtk/gtktypebuiltins.h:45: error: syntax error before "gtk_ctree_line_style_get_type"
    /usr/include/gtk/gtktypebuiltins.h:48: error: syntax error before "gtk_ctree_expander_style_get_type"
    /usr/include/gtk/gtktypebuiltins.h:51: error: syntax error before "gtk_ctree_expansion_type_get_type"
    /usr/include/gtk/gtktypebuiltins.h:56: error: syntax error before "gtk_debug_flag_get_type"
    /usr/include/gtk/gtktypebuiltins.h:61: error: syntax error before "gtk_dialog_flags_get_type"
    /usr/include/gtk/gtktypebuiltins.h:64: error: syntax error before "gtk_response_type_get_type"
    /usr/include/gtk/gtktypebuiltins.h:69: error: syntax error before "gtk_dest_defaults_get_type"
    /usr/include/gtk/gtktypebuiltins.h:72: error: syntax error before "gtk_target_flags_get_type"
    /usr/include/gtk/gtktypebuiltins.h:77: error: syntax error before "gtk_anchor_type_get_type"
    /usr/include/gtk/gtktypebuiltins.h:80: error: syntax error before "gtk_arrow_type_get_type"
    /usr/include/gtk/gtktypebuiltins.h:83: error: syntax error before "gtk_attach_options_get_type"
    /usr/include/gtk/gtktypebuiltins.h:86: error: syntax error before "gtk_button_box_style_get_type"
    /usr/include/gtk/gtktypebuiltins.h:89: error: syntax error before "gtk_curve_type_get_type"
    /usr/include/gtk/gtktypebuiltins.h:92: error: syntax error before "gtk_delete_type_get_type"
    /usr/include/gtk/gtktypebuiltins.h:95: error: syntax error before "gtk_direction_type_get_type"
    /usr/include/gtk/gtktypebuiltins.h:98: error: syntax error before "gtk_expander_style_get_type"
    /usr/include/gtk/gtktypebuiltins.h:101: error: syntax error before "gtk_icon_size_get_type"
    /usr/include/gtk/gtktypebuiltins.h:104: error: syntax error before "gtk_side_type_get_type"
    /usr/include/gtk/gtktypebuiltins.h:107: error: syntax error before "gtk_text_direction_get_type"
    /usr/include/gtk/gtktypebuiltins.h:110: error: syntax error before "gtk_justification_get_type"
    /usr/include/gtk/gtktypebuiltins.h:113: error: syntax error before "gtk_match_type_get_type"
    /usr/include/gtk/gtktypebuiltins.h:116: error: syntax error before "gtk_menu_direction_type_get_type"
    /usr/include/gtk/gtktypebuiltins.h:119: error: syntax error before "gtk_metric_type_get_type"
    /usr/include/gtk/gtktypebuiltins.h:122: error: syntax error before "gtk_movement_step_get_type"

    ....................

  6. #6
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    In file included from test.c:1:
    /usr/include/gtk-2.0/gtk/gtk.h:31:21: gdk/gdk.h: No such file or directory
    In file included from /usr/include/gtk/gtkaccelgroup.h:32,
    Your system lacks GDK support... You can install that (it is free GPL) and try it out...
    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

  7. #7
    Just Joined! Naveen Kumar D's Avatar
    Join Date
    Nov 2006
    Location
    India
    Posts
    56

    Angry Reply

    In which website I get that for free download???

  8. #8
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

  9. #9
    Just Joined! Naveen Kumar D's Avatar
    Join Date
    Nov 2006
    Location
    India
    Posts
    56

    Angry Reply

    Hai,
    I downloaded gdk-1.4.4.tar.gz and installed by following the commands in that website.
    The commands I followed are

    gzip -d gdk-1.4.4.tar.gz
    tar -xf gdk-1.4.4.tar
    cd gdk-1.4.4
    /configure --prefix=$HOME/pkgs/gdk-1.4.4
    make
    make check
    make install

    Next I ran the program but still I am getting same errors from the box.

  10. #10
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    Can you post down the sample code you wrote here?
    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •