error C2143: syntax error : missing ')' before '*' and others in Visual C++ 6.0

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

 



I tried to build a project using GTK+-2.2.0 in Visual C++ on Windows2000 and I get following errors:
 
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(35) : error C2143: syntax error : missing ')' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(35) : error C2143: syntax error : missing '{' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(35) : error C2371: 'GtkSelectionData' : redefinition; different basic types
        c:\wingtk\include\gtk\gtkwidget.h(114) : see declaration of 'GtkSelectionData'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(35) : error C2143: syntax error : missing ';' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(35) : error C2040: 'gpointer' : 'int ' differs in levels of indirection from 'void *'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(35) : error C2146: syntax error : missing ';' before identifier 'data'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(35) : error C2059: syntax error : ')'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(36) : error C2143: syntax error : missing ')' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(36) : error C2143: syntax error : missing '{' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(37) : error C2371: 'gchar' : redefinition; different basic types
        c:\wingtk\glib-2.2.0\glib\gtypes.h(41) : see declaration of 'gchar'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(37) : warning C4228: nonstandard extension used : qualifiers after comma in declarator list are ignored
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(37) : error C2143: syntax error : missing ';' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(38) : error C2040: 'gpointer' : 'int ' differs in levels of indirection from 'void *'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(38) : error C2146: syntax error : missing ';' before identifier 'data'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(38) : error C2059: syntax error : ')'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(44) : error C2143: syntax error : missing ')' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(44) : error C2143: syntax error : missing '{' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(45) : error C2371: 'GtkSelectionData' : redefinition; different basic types
        c:\wingtk\include\gtk\gtkwidget.h(114) : see declaration of 'GtkSelectionData'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(45) : error C2143: syntax error : missing ';' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(46) : warning C4142: benign redefinition of type
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(46) : error C2370: 'guint' : redefinition; different storage class
        c:\wingtk\glib-2.2.0\glib\gtypes.h(50) : see declaration of 'guint'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(46) : error C2146: syntax error : missing ';' before identifier 'info'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(47) : error C2059: syntax error : 'type'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(47) : error C2059: syntax error : ')'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(48) : error C2143: syntax error : missing ')' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(48) : error C2143: syntax error : missing '{' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(49) : error C2040: 'gpointer' : 'int ' differs in levels of indirection from 'void *'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(49) : error C2146: syntax error : missing ';' before identifier 'user_data_or_owner'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(49) : error C2059: syntax error : ')'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(53) : error C2143: syntax error : missing '{' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(53) : error C2143: syntax error : missing ')' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(53) : error C2143: syntax error : missing '{' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(54) : warning C4142: benign redefinition of type
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(54) : error C2370: 'GdkAtom' : redefinition; different storage class
        c:\wingtk\include\gdk\gdktypes.h(77) : see declaration of 'GdkAtom'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(54) : error C2146: syntax error : missing ';' before identifier 'selection'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(54) : error C2059: syntax error : ')'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(56) : error C2143: syntax error : missing '{' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(59) : error C2143: syntax error : missing '{' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(59) : error C2143: syntax error : missing ')' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(59) : error C2143: syntax error : missing '{' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(59) : error C2059: syntax error : ')'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(62) : error C2143: syntax error : missing ')' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(62) : error C2143: syntax error : missing '{' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(63) : error C2371: 'GtkTargetEntry' : redefinition; different basic types
        c:\wingtk\include\gtk\gtkselection.h(41) : see declaration of 'GtkTargetEntry'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(63) : warning C4228: nonstandard extension used : qualifiers after comma in declarator list are ignored
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(63) : error C2143: syntax error : missing ';' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(64) : warning C4142: benign redefinition of type
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(64) : error C2370: 'guint' : redefinition; different storage class
        c:\wingtk\glib-2.2.0\glib\gtypes.h(50) : see declaration of 'guint'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(64) : error C2146: syntax error : missing ';' before identifier 'n_targets'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(65) : error C2146: syntax error : missing ';' before identifier 'get_func'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(66) : error C2146: syntax error : missing ';' before identifier 'clear_func'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(67) : error C2059: syntax error : 'type'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(67) : error C2059: syntax error : ')'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(68) : error C2143: syntax error : missing ')' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(68) : error C2143: syntax error : missing '{' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(69) : error C2371: 'GtkTargetEntry' : redefinition; different basic types
        c:\wingtk\include\gtk\gtkselection.h(41) : see declaration of 'GtkTargetEntry'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(69) : warning C4228: nonstandard extension used : qualifiers after comma in declarator list are ignored
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(69) : error C2143: syntax error : missing ';' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(70) : warning C4142: benign redefinition of type
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(70) : error C2370: 'guint' : redefinition; different storage class
        c:\wingtk\glib-2.2.0\glib\gtypes.h(50) : see declaration of 'guint'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(70) : error C2146: syntax error : missing ';' before identifier 'n_targets'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(71) : error C2146: syntax error : missing ';' before identifier 'get_func'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(72) : error C2146: syntax error : missing ';' before identifier 'clear_func'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(73) : error C2059: syntax error : 'type'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(73) : error C2059: syntax error : ')'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(74) : error C2143: syntax error : missing ')' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(74) : error C2143: syntax error : missing '{' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(74) : error C2059: syntax error : ')'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(75) : error C2143: syntax error : missing ')' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(75) : error C2143: syntax error : missing '{' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(75) : error C2059: syntax error : ')'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(76) : error C2143: syntax error : missing ')' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(76) : error C2143: syntax error : missing '{' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(77) : error C2371: 'gchar' : redefinition; different basic types
        c:\wingtk\glib-2.2.0\glib\gtypes.h(41) : see declaration of 'gchar'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(77) : warning C4228: nonstandard extension used : qualifiers after comma in declarator list are ignored
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(77) : error C2143: syntax error : missing ';' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(78) : error C2370: 'gint' : redefinition; different storage class
        c:\wingtk\glib-2.2.0\glib\gtypes.h(44) : see declaration of 'gint'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(78) : error C2146: syntax error : missing ';' before identifier 'len'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(78) : error C2059: syntax error : ')'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(80) : error C2143: syntax error : missing ')' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(80) : error C2143: syntax error : missing '{' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(81) : warning C4142: benign redefinition of type
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(81) : error C2370: 'GdkAtom' : redefinition; different storage class
        c:\wingtk\include\gdk\gdktypes.h(77) : see declaration of 'GdkAtom'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(81) : error C2146: syntax error : missing ';' before identifier 'target'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(82) : error C2146: syntax error : missing ';' before identifier 'callback'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(83) : error C2059: syntax error : 'type'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(83) : error C2059: syntax error : ')'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(84) : error C2143: syntax error : missing ')' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(84) : error C2143: syntax error : missing '{' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(85) : error C2146: syntax error : missing ';' before identifier 'callback'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(86) : error C2059: syntax error : 'type'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(86) : error C2059: syntax error : ')'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(88) : error C2143: syntax error : missing ')' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(88) : error C2143: syntax error : missing '{' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(89) : warning C4142: benign redefinition of type
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(89) : error C2370: 'GdkAtom' : redefinition; different storage class
        c:\wingtk\include\gdk\gdktypes.h(77) : see declaration of 'GdkAtom'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(89) : error C2146: syntax error : missing ';' before identifier 'target'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(89) : error C2059: syntax error : ')'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(90) : error C2143: syntax error : missing ')' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(90) : error C2143: syntax error : missing '{' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(90) : error C2059: syntax error : ')'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(92) : error C2143: syntax error : missing ')' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(92) : error C2143: syntax error : missing '{' before '*'
c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(92) : error C2059: syntax error : ')'
c:\wingtk\gtk+-2.2.0\gtk\gtktexttag.h(168) : error C2061: syntax error : identifier 'GtkTextDirection'
c:\wingtk\gtk+-2.2.0\gtk\gtktexttag.h(189) : error C2061: syntax error : identifier 'wrap_mode'
c:\wingtk\gtk+-2.2.0\gtk\gtktexttag.h(189) : error C2059: syntax error : ';'
c:\wingtk\gtk+-2.2.0\gtk\gtktexttag.h(204) : error C2143: syntax error : missing '{' before ':'
c:\wingtk\gtk+-2.2.0\gtk\gtktexttag.h(204) : error C2059: syntax error : ':'
c:\wingtk\gtk+-2.2.0\gtk\gtktexttag.h(209) : error C2143: syntax error : missing '{' before ':'
c:\wingtk\gtk+-2.2.0\gtk\gtktexttag.h(209) : error C2059: syntax error : ':'
c:\wingtk\gtk+-2.2.0\gtk\gtktexttag.h(209) : fatal error C1003: error count exceeds 100; stopping compilation
editor.c
 
where for example:
line 35: typedef void (* GtkClipboardReceivedFunc) (GtkClipboard  *clipboard, GtkSelectionData *selection_data, gpointer data);
line 35: typedef void (*GtkClipboardTextReceivedFunc)  (GtkClipboard   *clipboard, const gchar      *text, gpointer data);
 
I installed the latest service pack (5) for Visual C++.
 
I am a newbie to C and the syntax looks fine for me.
Do you Yahoo!?
Free Pop-Up Blocker - Get it now


Do you Yahoo!?
Free Pop-Up Blocker - Get it now

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux