M
mailtopp
Aktives Mitglied
Thread Starter
- Dabei seit
- 17.09.2003
- Beiträge
- 783
- Reaktionspunkte
- 15
hi,
hab mir gtk für den mac runtergeladen (ist eine library mit benutzeroberflächen für c). In der readme stand folgende Installationsanweisung:
configure --disable-static
make
[su]
make install
das hab ich gemacht und das hat auch funktioniert! dann is so ein helloworld beispiel dabei.. wenn ich das mit gcc compilliere kommt folgende antwort:
helloworld.c:5:21: gtk/gtk.h: No such file or directory
helloworld.c:9: error: parse error before '*' token
helloworld.c:15: error: parse error before "delete_event"
helloworld.c:15: error: parse error before '*' token
helloworld.c:34: error: parse error before '*' token
helloworld.c: In function `main':
helloworld.c:44: error: `GtkWidget' undeclared (first use in this function)
helloworld.c:44: error: (Each undeclared identifier is reported only once
helloworld.c:44: error: for each function it appears in.)
helloworld.c:44: error: `window' undeclared (first use in this function)
helloworld.c:45: error: `button' undeclared (first use in this function)
helloworld.c:52: error: `GTK_WINDOW_TOPLEVEL' undeclared (first use in this function)
helloworld.c:84: error: `gtk_widget_destroy' undeclared (first use in this function)
In der helloworld.c is oben per include folgende header datei eingebunden:
#include <gtk/gtk.h>
Die findet er anscheinend nicht und deswegen kennt er die funktionen nicht! wisst ihr, wohin ich diesen gtk ordner kopieren muss, dass er sie an der richtigen stelle findet?
hab mir gtk für den mac runtergeladen (ist eine library mit benutzeroberflächen für c). In der readme stand folgende Installationsanweisung:
configure --disable-static
make
[su]
make install
das hab ich gemacht und das hat auch funktioniert! dann is so ein helloworld beispiel dabei.. wenn ich das mit gcc compilliere kommt folgende antwort:
helloworld.c:5:21: gtk/gtk.h: No such file or directory
helloworld.c:9: error: parse error before '*' token
helloworld.c:15: error: parse error before "delete_event"
helloworld.c:15: error: parse error before '*' token
helloworld.c:34: error: parse error before '*' token
helloworld.c: In function `main':
helloworld.c:44: error: `GtkWidget' undeclared (first use in this function)
helloworld.c:44: error: (Each undeclared identifier is reported only once
helloworld.c:44: error: for each function it appears in.)
helloworld.c:44: error: `window' undeclared (first use in this function)
helloworld.c:45: error: `button' undeclared (first use in this function)
helloworld.c:52: error: `GTK_WINDOW_TOPLEVEL' undeclared (first use in this function)
helloworld.c:84: error: `gtk_widget_destroy' undeclared (first use in this function)
In der helloworld.c is oben per include folgende header datei eingebunden:
#include <gtk/gtk.h>
Die findet er anscheinend nicht und deswegen kennt er die funktionen nicht! wisst ihr, wohin ich diesen gtk ordner kopieren muss, dass er sie an der richtigen stelle findet?