Gtk+ Header mit Parse Fehlern unter C mit gcc

Hallo…

Wenn ich versuche, den hierunter stehenden Quelltext zu übersetzen, dann bekomme ich immer Meldungen über eine Unzahl von Fehlern in den Gtk+ 2.0 Bibliotheken.

Ich nutze im Augenblick gcc 3.3.3 der Distri Fedora Core 2. Der Fehler ist allerdings auch schon unter Mandrake 10.0 aufgetreten.

Mittlerweile habe ich’s aufgegeben, auch nur einen Quelltext zu schreiben, in dem die gtk.h eingebunden wird; bei hallowelt.c mit gtk.h Include treten die Fehler bereits auf.

Ich nutze die gtk Bibliothek in der Version 2.2.4. Ich habe unter /usr/include einen Symlink namens ‚gtk‘ auf ‚/usr/include/gtk±2.0/gtk‘ und einen namens gdk auf ‚/usr/include/gtk±2.0/gdk‘

Kleiner Beispielquelltext (soll eigentlich nichts machen, sondern nur durchkompilieren!)

#include 

#define WID GtkWidget

void killall();

int main(int argc, char \*argv[])
{
 WID p\_MainWindow;
 gtk\_init(&argc, argv);

 p\_MainWindow = gtk\_window\_new(GTK\_WINDOW\_TOPLEVEL);
 gtk\_signal\_connect(GTK\_OBJECT(hauptfenster), "destroy", GTK\_SIGNAL\_FUNC(killall), NULL);

 gtk\_main();
}

void killall()
{
 gtk\_main\_quit();
}

Ab hier unten dann der letzte Rest der gcc-Ausgabe (alles was in die xterm History passte):

/usr/include/gtk/gtktextiter.h:224: error: `gtk\_text\_iter\_backward\_visible\_cursor\_positions' declared as function returning a function
/usr/include/gtk/gtktextiter.h:236: error: `gtk\_text\_iter\_forward\_to\_line\_end' declared as function returning a function
/usr/include/gtk/gtktextiter.h:248: error: `gtk\_text\_iter\_forward\_to\_tag\_toggle' declared as function returning a function
/usr/include/gtk/gtktextiter.h:251: error: `gtk\_text\_iter\_backward\_to\_tag\_toggle' declared as function returning a function
/usr/include/gtk/gtktextiter.h:253: error: Syntaxfehler before "ch"
/usr/include/gtk/gtktextiter.h:253: error: `GtkTextCharPredicate' declared as function returning a function
/usr/include/gtk/gtktextiter.h:257: error: Syntaxfehler before "gpointer"
/usr/include/gtk/gtktextiter.h:258: error: `gtk\_text\_iter\_forward\_find\_char' declared as function returning a function
/usr/include/gtk/gtktextiter.h:261: error: Syntaxfehler before "gpointer"
/usr/include/gtk/gtktextiter.h:262: error: `gtk\_text\_iter\_backward\_find\_char' declared as function returning a function
/usr/include/gtk/gtktextiter.h:265: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktextiter.h:269: error: `gtk\_text\_iter\_forward\_search' declared as function returning a function
/usr/include/gtk/gtktextiter.h:272: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktextiter.h:276: error: `gtk\_text\_iter\_backward\_search' declared as function returning a function
/usr/include/gtk/gtktextiter.h:283: error: `gtk\_text\_iter\_equal' declared as function returning a function
/usr/include/gtk/gtktextiter.h:285: error: `gtk\_text\_iter\_compare' declared as function returning a function
/usr/include/gtk/gtktextiter.h:288: error: `gtk\_text\_iter\_in\_range' declared as function returning a function
In file included from /usr/include/gtk/gtktextbuffer.h:34,
 from /usr/include/gtk/gtk.h:150,
 from hallo4.c:1:
/usr/include/gtk/gtktextmark.h:71: error: Syntaxfehler before "GObject"
/usr/include/gtk/gtktextmark.h:78: error: Syntaxfehler before "GObjectClass"
/usr/include/gtk/gtktextmark.h:85: error: Syntaxfehler before '}' token
/usr/include/gtk/gtktextmark.h:87: error: Syntaxfehler before "gtk\_text\_mark\_get\_type"
/usr/include/gtk/gtktextmark.h:87: error: Syntaxfehler before "G\_GNUC\_CONST"
/usr/include/gtk/gtktextmark.h:91: error: `gtk\_text\_mark\_get\_visible' declared as function returning a function
/usr/include/gtk/gtktextmark.h:93: error: Syntaxfehler before "gchar"
/usr/include/gtk/gtktextmark.h:94: error: `gtk\_text\_mark\_get\_deleted' declared as function returning a function
/usr/include/gtk/gtktextmark.h:96: error: `gtk\_text\_mark\_get\_left\_gravity' declared as function returning a function
In file included from /usr/include/gtk/gtk.h:150,
 from hallo4.c:1:
/usr/include/gtk/gtktextbuffer.h:61: error: Syntaxfehler before "GObject"
/usr/include/gtk/gtktextbuffer.h:66: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktextbuffer.h:67: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktextbuffer.h:71: error: Syntaxfehler before "user\_action\_count"
/usr/include/gtk/gtktextbuffer.h:74: error: Syntaxfehler before "modified"
/usr/include/gtk/gtktextbuffer.h:79: error: Syntaxfehler before "GObjectClass"
/usr/include/gtk/gtktextbuffer.h:83: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktextbuffer.h:88: error: Syntaxfehler before "GdkPixbuf"
/usr/include/gtk/gtktextbuffer.h:101: error: conflicting types for `changed'
/usr/include/gtk/gtkicontheme.h:55: error: previous declaration of `changed'
/usr/include/gtk/gtktextbuffer.h:136: error: Syntaxfehler before '}' token
/usr/include/gtk/gtktextbuffer.h:138: error: Syntaxfehler before "gtk\_text\_buffer\_get\_type"
/usr/include/gtk/gtktextbuffer.h:138: error: Syntaxfehler before "G\_GNUC\_CONST"
/usr/include/gtk/gtktextbuffer.h:144: error: `gtk\_text\_buffer\_get\_line\_count' declared as function returning a function
/usr/include/gtk/gtktextbuffer.h:145: error: `gtk\_text\_buffer\_get\_char\_count' declared as function returning a function
/usr/include/gtk/gtktextbuffer.h:152: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktextbuffer.h:158: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktextbuffer.h:161: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktextbuffer.h:166: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktextbuffer.h:168: error: `gtk\_text\_buffer\_insert\_interactive' declared as function returning a function
/usr/include/gtk/gtktextbuffer.h:170: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktextbuffer.h:172: error: `gtk\_text\_buffer\_insert\_interactive\_at\_cursor' declared as function returning a function
/usr/include/gtk/gtktextbuffer.h:182: error: `gtk\_text\_buffer\_insert\_range\_interactive' declared as function returning a function
/usr/include/gtk/gtktextbuffer.h:186: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktextbuffer.h:193: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktextbuffer.h:205: error: `gtk\_text\_buffer\_delete\_interactive' declared as function returning a function
/usr/include/gtk/gtktextbuffer.h:210: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktextbuffer.h:215: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktextbuffer.h:223: error: Syntaxfehler before "GdkPixbuf"
/usr/include/gtk/gtktextbuffer.h:236: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktextbuffer.h:245: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktextbuffer.h:248: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktextbuffer.h:251: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktextbuffer.h:275: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktextbuffer.h:279: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktextbuffer.h:291: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktextbuffer.h:336: error: `gtk\_text\_buffer\_get\_modified' declared as function returning a function
/usr/include/gtk/gtktextbuffer.h:357: error: `gtk\_text\_buffer\_get\_selection\_bounds' declared as function returning a function
/usr/include/gtk/gtktextbuffer.h:360: error: `gtk\_text\_buffer\_delete\_selection' declared as function returning a function
/usr/include/gtk/gtktextbuffer.h:371: error: Syntaxfehler before '\*' token
In file included from /usr/include/gtk/gtk.h:151,
 from hallo4.c:1:
/usr/include/gtk/gtktextview.h:68: error: field `parent\_instance' has incomplete type
/usr/include/gtk/gtktextview.h:73: error: Syntaxfehler before "guint"
/usr/include/gtk/gtktextview.h:85: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktextview.h:86: error: Syntaxfehler before "editable"
/usr/include/gtk/gtktextview.h:119: error: `width' redeclared as different kind of symbol
/usr/include/gtk/gtklayout.h:60: error: previous declaration of `width'
/usr/include/gtk/gtktextview.h:120: error: `height' redeclared as different kind of symbol
/usr/include/gtk/gtkoptionmenu.h:61: error: previous declaration of `height'
/usr/include/gtk/gtktextview.h:138: error: Syntaxfehler before "blink\_timeout"
/usr/include/gtk/gtktextview.h:140: error: Syntaxfehler before "first\_validate\_idle"
/usr/include/gtk/gtktextview.h:141: error: Syntaxfehler before "incremental\_validate\_idle"
/usr/include/gtk/gtktextview.h:149: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktextview.h:154: error: Syntaxfehler before '}' token
/usr/include/gtk/gtktextview.h:158: error: field `parent\_class' has incomplete type
/usr/include/gtk/gtktextview.h:188: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktextview.h:216: error: Syntaxfehler before "gtk\_text\_view\_get\_type"
/usr/include/gtk/gtktextview.h:216: error: Syntaxfehler before "G\_GNUC\_CONST"
/usr/include/gtk/gtktextview.h:224: error: Syntaxfehler before "gdouble"
/usr/include/gtk/gtktextview.h:227: error: `gtk\_text\_view\_scroll\_to\_iter' declared as function returning a function
/usr/include/gtk/gtktextview.h:230: error: Syntaxfehler before "gdouble"
/usr/include/gtk/gtktextview.h:237: error: `gtk\_text\_view\_move\_mark\_onscreen' declared as function returning a function
/usr/include/gtk/gtktextview.h:238: error: `gtk\_text\_view\_place\_cursor\_onscreen' declared as function returning a function
/usr/include/gtk/gtktextview.h:241: error: Syntaxfehler before "GdkRectangle"
/usr/include/gtk/gtktextview.h:244: error: `gtk\_text\_view\_get\_cursor\_visible' declared as function returning a function
/usr/include/gtk/gtktextview.h:248: error: Syntaxfehler before "GdkRectangle"
/usr/include/gtk/gtktextview.h:276: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktextview.h:279: error: Syntaxfehler before "GdkWindow"
/usr/include/gtk/gtktextview.h:285: error: `gtk\_text\_view\_get\_border\_window\_size' declared as function returning a function
/usr/include/gtk/gtktextview.h:288: error: `gtk\_text\_view\_forward\_display\_line' declared as function returning a function
/usr/include/gtk/gtktextview.h:290: error: `gtk\_text\_view\_backward\_display\_line' declared as function returning a function
/usr/include/gtk/gtktextview.h:292: error: `gtk\_text\_view\_forward\_display\_line\_end' declared as function returning a function
/usr/include/gtk/gtktextview.h:294: error: `gtk\_text\_view\_backward\_display\_line\_start' declared as function returning a function
/usr/include/gtk/gtktextview.h:296: error: `gtk\_text\_view\_starts\_display\_line' declared as function returning a function
/usr/include/gtk/gtktextview.h:299: error: `gtk\_text\_view\_move\_visually' declared as function returning a function
/usr/include/gtk/gtktextview.h:326: error: `gtk\_text\_view\_get\_editable' declared as function returning a function
/usr/include/gtk/gtktextview.h:329: error: `gtk\_text\_view\_get\_overwrite' declared as function returning a function
/usr/include/gtk/gtktextview.h:332: error: `gtk\_text\_view\_get\_accepts\_tab' declared as function returning a function
/usr/include/gtk/gtktextview.h:335: error: `gtk\_text\_view\_get\_pixels\_above\_lines' declared as function returning a function
/usr/include/gtk/gtktextview.h:338: error: `gtk\_text\_view\_get\_pixels\_below\_lines' declared as function returning a function
/usr/include/gtk/gtktextview.h:341: error: `gtk\_text\_view\_get\_pixels\_inside\_wrap' declared as function returning a function
/usr/include/gtk/gtktextview.h:347: error: `gtk\_text\_view\_get\_left\_margin' declared as function returning a function
/usr/include/gtk/gtktextview.h:350: error: `gtk\_text\_view\_get\_right\_margin' declared as function returning a function
/usr/include/gtk/gtktextview.h:353: error: `gtk\_text\_view\_get\_indent' declared as function returning a function
/usr/include/gtk/gtktextview.h:355: error: Syntaxfehler before "PangoTabArray"
/usr/include/gtk/gtktextview.h:356: error: Syntaxfehler before '\*' token
In file included from /usr/include/gtk/gtk.h:152,
 from hallo4.c:1:
/usr/include/gtk/gtktipsquery.h:61: error: field `label' has incomplete type
/usr/include/gtk/gtktipsquery.h:63: error: Syntaxfehler before "guint"
/usr/include/gtk/gtktipsquery.h:66: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktipsquery.h:71: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktipsquery.h:72: error: Syntaxfehler before '}' token
/usr/include/gtk/gtktipsquery.h:82: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktipsquery.h:86: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktipsquery.h:88: error: `widget\_selected' declared as function returning a function
/usr/include/gtk/gtktipsquery.h:99: error: Syntaxfehler before "gtk\_tips\_query\_get\_type"
/usr/include/gtk/gtktipsquery.h:99: error: Syntaxfehler before "G\_GNUC\_CONST"
/usr/include/gtk/gtktipsquery.h:106: error: Syntaxfehler before '\*' token
In Datei, eingefügt von /usr/include/gtk/gtk.h:156,
 von hallo4.c:1:
/usr/include/gtk/gtktoolbar.h:35:21: gdk/gdk.h: Datei oder Verzeichnis nicht gefunden
In file included from /usr/include/gtk/gtk.h:156,
 from hallo4.c:1:
/usr/include/gtk/gtktoolbar.h:60: error: Syntaxfehler before "typedef"
/usr/include/gtk/gtktoolbar.h:93: error: field `container' has incomplete type
/usr/include/gtk/gtktoolbar.h:96: error: field `num\_children' declared as a function
/usr/include/gtk/gtktoolbar.h:97: error: Syntaxfehler before "GList"
/usr/include/gtk/gtktoolbar.h:99: error: conflicting types for `style'
/usr/include/gtk/gtkclist.h:424: error: previous declaration of `style'
/usr/include/gtk/gtktoolbar.h:108: error: Syntaxfehler before "style\_set\_connection"
/usr/include/gtk/gtktoolbar.h:109: error: Syntaxfehler before "icon\_size\_connection"
/usr/include/gtk/gtktoolbar.h:111: error: Syntaxfehler before "style\_set"
/usr/include/gtk/gtktoolbar.h:117: error: field `parent\_class' has incomplete type
/usr/include/gtk/gtktoolbar.h:127: error: `popup\_context\_menu' declared as function returning a function
/usr/include/gtk/gtktoolbar.h:135: error: Syntaxfehler before "gtk\_toolbar\_get\_type"
/usr/include/gtk/gtktoolbar.h:135: error: Syntaxfehler before "G\_GNUC\_CONST"
/usr/include/gtk/gtktoolbar.h:141: error: `gtk\_toolbar\_get\_item\_index' declared as function returning a function
/usr/include/gtk/gtktoolbar.h:142: error: `gtk\_toolbar\_get\_n\_items' declared as function returning a function
/usr/include/gtk/gtktoolbar.h:145: error: `gtk\_toolbar\_get\_show\_arrow' declared as function returning a function
/usr/include/gtk/gtktoolbar.h:151: error: `gtk\_toolbar\_get\_tooltips' declared as function returning a function
/usr/include/gtk/gtktoolbar.h:162: error: `gtk\_toolbar\_get\_drop\_index' declared as function returning a function
/usr/include/gtk/gtktoolbar.h:168: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktoolbar.h:168: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktoolbar.h:171: error: Syntaxfehler before "GdkRectangle"
/usr/include/gtk/gtktoolbar.h:173: error: `\_gtk\_toolbar\_get\_default\_space\_size' declared as function returning a function
/usr/include/gtk/gtktoolbar.h:190: error: Syntaxfehler before "gpointer"
/usr/include/gtk/gtktoolbar.h:197: error: Syntaxfehler before "gpointer"
/usr/include/gtk/gtktoolbar.h:204: error: Syntaxfehler before "gpointer"
/usr/include/gtk/gtktoolbar.h:209: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktoolbar.h:232: error: Syntaxfehler before "gpointer"
/usr/include/gtk/gtktoolbar.h:242: error: Syntaxfehler before "gpointer"
/usr/include/gtk/gtktoolbar.h:252: error: Syntaxfehler before "gpointer"
In file included from /usr/include/gtk/gtk.h:162,
 from hallo4.c:1:
/usr/include/gtk/gtktreednd.h:35: error: Syntaxfehler before "typedef"
/usr/include/gtk/gtktreednd.h:40: error: Syntaxfehler before "GTypeInterface"
/usr/include/gtk/gtktreednd.h:45: error: `row\_draggable' declared as function returning a function
/usr/include/gtk/gtktreednd.h:49: error: `drag\_data\_get' declared as function returning a function
/usr/include/gtk/gtktreednd.h:49: error: conflicting types for `drag\_data\_get'
/usr/include/gtk/gtkwidget.h:363: error: previous declaration of `drag_data_get'/usr/include/gtk/gtktreednd.h:52: error: `drag\_data\_delete' declared as function returning a function
/usr/include/gtk/gtktreednd.h:52: error: conflicting types for `drag\_data\_delete'
/usr/include/gtk/gtkwidget.h:365: error: previous declaration of `drag\_data\_delete'
/usr/include/gtk/gtktreednd.h:53: error: Syntaxfehler before '}' token
/usr/include/gtk/gtktreednd.h:55: error: Syntaxfehler before "gtk\_tree\_drag\_source\_get\_type"
/usr/include/gtk/gtktreednd.h:55: error: Syntaxfehler before "G\_GNUC\_CONST"
/usr/include/gtk/gtktreednd.h:59: error: `gtk\_tree\_drag\_source\_row\_draggable' declared as function returning a function
/usr/include/gtk/gtktreednd.h:63: error: `gtk\_tree\_drag\_source\_drag\_data\_delete' declared as function returning a function
/usr/include/gtk/gtktreednd.h:70: error: `gtk\_tree\_drag\_source\_drag\_data\_get' declared as function returning a function
/usr/include/gtk/gtktreednd.h:82: error: Syntaxfehler before "GTypeInterface"
/usr/include/gtk/gtktreednd.h:88: error: `drag\_data\_received' declared as function returning a function
/usr/include/gtk/gtktreednd.h:88: error: conflicting types for `drag\_data\_received'
/usr/include/gtk/gtkwidget.h:387: error: previous declaration of `drag\_data\_received'
/usr/include/gtk/gtktreednd.h:92: error: `row\_drop\_possible' declared as function returning a function
/usr/include/gtk/gtktreednd.h:93: error: Syntaxfehler before '}' token
/usr/include/gtk/gtktreednd.h:95: error: Syntaxfehler before "gtk\_tree\_drag\_dest\_get\_type"
/usr/include/gtk/gtktreednd.h:95: error: Syntaxfehler before "G\_GNUC\_CONST"
/usr/include/gtk/gtktreednd.h:102: error: `gtk\_tree\_drag\_dest\_drag\_data\_received' declared as function returning a function
/usr/include/gtk/gtktreednd.h:108: error: `gtk\_tree\_drag\_dest\_row\_drop\_possible' declared as function returning a function
/usr/include/gtk/gtktreednd.h:116: error: `gtk\_tree\_set\_row\_drag\_data' declared as function returning a function
/usr/include/gtk/gtktreednd.h:119: error: `gtk\_tree\_get\_row\_drag\_data' declared as function returning a function
In file included from /usr/include/gtk/gtk.h:166,
 from hallo4.c:1:
/usr/include/gtk/gtktreemodelsort.h:35: error: Syntaxfehler before "typedef"
/usr/include/gtk/gtktreemodelsort.h:40: error: Syntaxfehler before "GObject"
/usr/include/gtk/gtktreemodelsort.h:45: error: Syntaxfehler before "child\_flags"/usr/include/gtk/gtktreemodelsort.h:50: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktreemodelsort.h:55: error: Syntaxfehler before "default\_sort\_func"
/usr/include/gtk/gtktreemodelsort.h:56: error: Syntaxfehler before "default\_sort\_data"
/usr/include/gtk/gtktreemodelsort.h:60: error: Syntaxfehler before "changed\_id"
/usr/include/gtk/gtktreemodelsort.h:61: error: Syntaxfehler before "inserted\_id"/usr/include/gtk/gtktreemodelsort.h:62: error: Syntaxfehler before "has\_child\_toggled\_id"
/usr/include/gtk/gtktreemodelsort.h:63: error: Syntaxfehler before "deleted\_id"
/usr/include/gtk/gtktreemodelsort.h:64: error: Syntaxfehler before "reordered\_id"
/usr/include/gtk/gtktreemodelsort.h:69: error: Syntaxfehler before "GObjectClass"
/usr/include/gtk/gtktreemodelsort.h:76: error: Syntaxfehler before '}' token
/usr/include/gtk/gtktreemodelsort.h:79: error: Syntaxfehler before "gtk\_tree\_model\_sort\_get\_type"
/usr/include/gtk/gtktreemodelsort.h:79: error: Syntaxfehler before "G\_GNUC\_CONST"
/usr/include/gtk/gtktreemodelsort.h:96: error: `gtk\_tree\_model\_sort\_iter\_is\_valid' declared as function returning a function
In Datei, eingefügt von /usr/include/gtk/gtk.h:167,
 von hallo4.c:1:
/usr/include/gtk/gtktreeselection.h:23:25: glib-object.h: Datei oder Verzeichnis nicht gefunden
In file included from /usr/include/gtk/gtk.h:167,
 from hallo4.c:1:
/usr/include/gtk/gtktreeselection.h:37: error: Syntaxfehler before "typedef"
/usr/include/gtk/gtktreeselection.h:41: error: Syntaxfehler before "gpointer"
/usr/include/gtk/gtktreeselection.h:41: error: `GtkTreeSelectionFunc' declared as function returning a function
/usr/include/gtk/gtktreeselection.h:45: error: Syntaxfehler before "gpointer"
/usr/include/gtk/gtktreeselection.h:49: error: Syntaxfehler before "GObject"
/usr/include/gtk/gtktreeselection.h:54: error: conflicting types for `type'
/usr/include/gtk/gtkselection.h:59: error: previous declaration of `type'
/usr/include/gtk/gtktreeselection.h:56: error: Syntaxfehler before "user\_data"
/usr/include/gtk/gtktreeselection.h:58: error: Syntaxfehler before '}' token
/usr/include/gtk/gtktreeselection.h:62: error: Syntaxfehler before "GObjectClass"
/usr/include/gtk/gtktreeselection.h:64: error: conflicting types for `changed'
/usr/include/gtk/gtktextbuffer.h:101: error: previous declaration of `changed'
/usr/include/gtk/gtktreeselection.h:71: error: Syntaxfehler before '}' token
/usr/include/gtk/gtktreeselection.h:74: error: Syntaxfehler before "gtk\_tree\_selection\_get\_type"
/usr/include/gtk/gtktreeselection.h:81: error: Syntaxfehler before "gpointer"
/usr/include/gtk/gtktreeselection.h:83: error: Syntaxfehler before "gtk\_tree\_selection\_get\_user\_data"
/usr/include/gtk/gtktreeselection.h:90: error: `gtk\_tree\_selection\_get\_selected' declared as function returning a function
/usr/include/gtk/gtktreeselection.h:91: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktreeselection.h:93: error: `gtk\_tree\_selection\_count\_selected\_rows' declared as function returning a function
/usr/include/gtk/gtktreeselection.h:96: error: Syntaxfehler before "gpointer"
/usr/include/gtk/gtktreeselection.h:106: error: `gtk\_tree\_selection\_path\_is\_selected' declared as function returning a function
/usr/include/gtk/gtktreeselection.h:108: error: `gtk\_tree\_selection\_iter\_is\_selected' declared as function returning a function
In file included from /usr/include/gtk/gtk.h:168,
 from hallo4.c:1:
/usr/include/gtk/gtktreestore.h:43: error: Syntaxfehler before "GObject"
/usr/include/gtk/gtktreestore.h:46: error: Syntaxfehler before "root"
/usr/include/gtk/gtktreestore.h:47: error: Syntaxfehler before "last"
/usr/include/gtk/gtktreestore.h:47: error: `last' redeclared as different kind of symbol
/usr/include/gtk/gtkcurve.h:74: error: previous declaration of `last'
/usr/include/gtk/gtktreestore.h:50: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktreestore.h:52: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtktreestore.h:53: error: Syntaxfehler before "default\_sort\_func"
/usr/include/gtk/gtktreestore.h:54: error: Syntaxfehler before "default\_sort\_data"
/usr/include/gtk/gtktreestore.h:56: error: Syntaxfehler before "columns\_dirty"
/usr/include/gtk/gtktreestore.h:61: error: Syntaxfehler before "GObjectClass"
/usr/include/gtk/gtktreestore.h:68: error: Syntaxfehler before '}' token
/usr/include/gtk/gtktreestore.h:71: error: Syntaxfehler before "gtk\_tree\_store\_get\_type"
/usr/include/gtk/gtktreestore.h:75: error: Syntaxfehler before "GType"
/usr/include/gtk/gtktreestore.h:78: error: Syntaxfehler before "GType"
/usr/include/gtk/gtktreestore.h:85: error: Syntaxfehler before "GValue"
/usr/include/gtk/gtktreestore.h:93: error: `gtk\_tree\_store\_remove' declared as function returning a function
/usr/include/gtk/gtktreestore.h:114: error: `gtk\_tree\_store\_is\_ancestor' declared as function returning a function
/usr/include/gtk/gtktreestore.h:116: error: `gtk\_tree\_store\_iter\_depth' declared as function returning a function
/usr/include/gtk/gtktreestore.h:119: error: `gtk\_tree\_store\_iter\_is\_valid' declared as function returning a function
In Datei, eingefügt von /usr/include/gtk/gtk.h:172,
 von hallo4.c:1:
/usr/include/gtk/gtkuimanager.h:34:18: glib.h: Datei oder Verzeichnis nicht gefunden
/usr/include/gtk/gtkuimanager.h:35:25: glib-object.h: Datei oder Verzeichnis nicht gefunden
In file included from /usr/include/gtk/gtk.h:172,
 from hallo4.c:1:
/usr/include/gtk/gtkuimanager.h:50: error: Syntaxfehler before "typedef"
/usr/include/gtk/gtkuimanager.h:56: error: Syntaxfehler before "GObject"
/usr/include/gtk/gtkuimanager.h:60: error: conflicting types for `private\_data'
/usr/include/gtk/gtkcalendar.h:92: error: previous declaration of `private\_data'/usr/include/gtk/gtkuimanager.h:61: error: Syntaxfehler before '}' token
/usr/include/gtk/gtkuimanager.h:64: error: Syntaxfehler before "GObjectClass"
/usr/include/gtk/gtkuimanager.h:72: error: conflicting types for `connect_proxy'/usr/include/gtk/gtkaction.h:72: error: previous declaration of `connect\_proxy'
/usr/include/gtk/gtkuimanager.h:75: error: conflicting types for `disconnect\_proxy'
/usr/include/gtk/gtkaction.h:74: error: previous declaration of `disconnect\_proxy'
/usr/include/gtk/gtkuimanager.h:86: error: Syntaxfehler before '}' token
/usr/include/gtk/gtkuimanager.h:101: error: Syntaxfehler before "gtk\_ui\_manager\_get\_type"
/usr/include/gtk/gtkuimanager.h:105: error: `gtk\_ui\_manager\_get\_add\_tearoffs' declared as function returning a function
/usr/include/gtk/gtkuimanager.h:111: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtkuimanager.h:114: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtkuimanager.h:115: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtkuimanager.h:118: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtkuimanager.h:119: error: Syntaxfehler before "gtk\_ui\_manager\_add\_ui\_from\_string"
/usr/include/gtk/gtkuimanager.h:120: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtkuimanager.h:123: error: Syntaxfehler before "gtk\_ui\_manager\_add\_ui\_from\_file"
/usr/include/gtk/gtkuimanager.h:124: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtkuimanager.h:127: error: Syntaxfehler before "guint"
/usr/include/gtk/gtkuimanager.h:134: error: Syntaxfehler before "guint"
/usr/include/gtk/gtkuimanager.h:135: error: Syntaxfehler before '\*' token
/usr/include/gtk/gtkuimanager.h:137: error: Syntaxfehler before "gtk\_ui\_manager\_new\_merge\_id"
In file included from /usr/include/gtk/gtk.h:173,
 from hallo4.c:1:
/usr/include/gtk/gtkvbbox.h:47: error: Syntaxfehler before "typedef"
/usr/include/gtk/gtkvbbox.h:52: error: field `button\_box' has incomplete type
/usr/include/gtk/gtkvbbox.h:61: error: Syntaxfehler before "gtk\_vbutton\_box\_get\_type"
/usr/include/gtk/gtkvbbox.h:61: error: Syntaxfehler before "G\_GNUC\_CONST"
/usr/include/gtk/gtkvbbox.h:67: error: `gtk\_vbutton\_box\_get\_spacing\_default' declared as function returning a function
In file included from /usr/include/gtk/gtk.h:177,
 from hallo4.c:1:
/usr/include/gtk/gtkvpaned.h:50: error: field `paned' has incomplete type
/usr/include/gtk/gtkvpaned.h:58: error: Syntaxfehler before "gtk\_vpaned\_get\_type"
/usr/include/gtk/gtkvpaned.h:58: error: Syntaxfehler before "G\_GNUC\_CONST"
In Datei, eingefügt von /usr/include/gtk/gtk.h:178,
 von hallo4.c:1:
/usr/include/gtk/gtkvruler.h:41:21: gdk/gdk.h: Datei oder Verzeichnis nicht gefunden
In file included from /usr/include/gtk/gtk.h:178,
 from hallo4.c:1:
/usr/include/gtk/gtkvruler.h:63: error: field `ruler' has incomplete type
/usr/include/gtk/gtkvruler.h:72: error: Syntaxfehler before "gtk\_vruler\_get\_type"
/usr/include/gtk/gtkvruler.h:72: error: Syntaxfehler before "G\_GNUC\_CONST"
In Datei, eingefügt von /usr/include/gtk/gtk.h:179,
 von hallo4.c:1:
/usr/include/gtk/gtkvscale.h:31:21: gdk/gdk.h: Datei oder Verzeichnis nicht gefunden
In file included from /usr/include/gtk/gtk.h:179,
 from hallo4.c:1:
/usr/include/gtk/gtkvscale.h:53: error: field `scale' has incomplete type
/usr/include/gtk/gtkvscale.h:58: error: field `parent\_class' has incomplete type/usr/include/gtk/gtkvscale.h:62: error: Syntaxfehler before "gtk\_vscale\_get\_type"
/usr/include/gtk/gtkvscale.h:62: error: Syntaxfehler before "G\_GNUC\_CONST"
/usr/include/gtk/gtkvscale.h:64: error: Syntaxfehler before "min"
In Datei, eingefügt von /usr/include/gtk/gtk.h:181,
 von hallo4.c:1:
/usr/include/gtk/gtkvseparator.h:31:21: gdk/gdk.h: Datei oder Verzeichnis nicht gefunden
In file included from /usr/include/gtk/gtk.h:181,
 from hallo4.c:1:
/usr/include/gtk/gtkvseparator.h:62: error: Syntaxfehler before "gtk\_vseparator\_get\_type"
/usr/include/gtk/gtkvseparator.h:62: error: Syntaxfehler before "G\_GNUC\_CONST"
hallo4.c: In Funktion »main«:
hallo4.c:9: error: storage size of `p\_MainWindow' isn't known
hallo4.c:10: Warnung: Verarbeiten des Argumentes 2 von »gtk\_init« von inkompatiblem Zeigertyp
hallo4.c:13: Warnung: implicit declaration of function `G\_TYPE\_CHECK\_INSTANCE\_CAST'
hallo4.c:13: error: `hauptfenster' undeclared (first use in this function)
hallo4.c:13: error: (Each undeclared identifier is reported only once
hallo4.c:13: error: for each function it appears in.)
hallo4.c:13: Warnung: implicit declaration of function `gtk\_object\_get\_type'
hallo4.c:13: error: Syntaxfehler before "GtkObject"
hallo4.c:13: error: `NULL' undeclared (first use in this function)
hallo4.c:13: Warnung: left-hand operand of comma expression has no effect
hallo4.c:13: Warnung: left-hand operand of comma expression has no effect
hallo4.c:13: Warnung: left-hand operand of comma expression has no effect
hallo4.c:13: Warnung: left-hand operand of comma expression has no effect
hallo4.c:13: Warnung: left-hand operand of comma expression has no effect
hallo4.c:13: Warnung: left-hand operand of comma expression has no effect
hallo4.c:13: error: Syntaxfehler before ')' token
hallo4.c:9: Warnung: unused variable `p\_MainWindow'
hallo4.c:21:2: Warnung: Kein Newline am Dateiende
hallo4.c: Auf höchster Ebene:
/usr/include/gtk/gtksizegroup.h:52: error: storage size of `requisition' isn't known
/usr/include/gtk/gtkruler.h:107: error: storage size of `subdivide' isn't known
/usr/include/gtk/gtktexttag.h:165: error: storage size of `appearance' isn't known

hallo Alexander ?
wie hast du dein programm compiliert ?
ich habe zwar noch nie mit gtk+ gearbeitet aber es sieht aus als der Linker die Bibliotheken nicht findet.

youssef

Danke

als der Linker die Bibliotheken nicht findet.

Und genau das wars dann auch!

Danke.