thacrazze
2008-11-08, 22:48:26
Hallo,
ich will grad SDL (http://de.wikipedia.org/wiki/Simple_DirectMedia_Layer) lernen, dazu wollt ich das Beispielprogramm von hier kompilieren (http://de.wikibooks.org/wiki/SDL:_Die_erste_SDL-Anwendung)
Aber es kommt ne Fehlermeldung:
first.c:2:17: error: SDL.h: Datei oder Verzeichnis nicht gefunden
first.c: In function ‘main’:
first.c:5: error: ‘SDL_Surface’ undeclared (first use in this function)
first.c:5: error: (Each undeclared identifier is reported only once
first.c:5: error: for each function it appears in.)
first.c:5: error: ‘screen’ undeclared (first use in this function)
first.c:6: error: ‘SDL_INIT_VIDEO’ undeclared (first use in this function)
first.c:7: warning: incompatible implicit declaration of built-in function ‘printf’
first.c:10: error: ‘SDL_Quit’ undeclared (first use in this function)
first.c:11: error: ‘SDL_HWSURFACE’ undeclared (first use in this function)
first.c:13: warning: incompatible implicit declaration of built-in function ‘printf’
Das Paket SDL und SDL-devel habe ich installiert (openSUSE). Was mache ich falch? Hat da einer ne Idee?
ich will grad SDL (http://de.wikipedia.org/wiki/Simple_DirectMedia_Layer) lernen, dazu wollt ich das Beispielprogramm von hier kompilieren (http://de.wikibooks.org/wiki/SDL:_Die_erste_SDL-Anwendung)
Aber es kommt ne Fehlermeldung:
first.c:2:17: error: SDL.h: Datei oder Verzeichnis nicht gefunden
first.c: In function ‘main’:
first.c:5: error: ‘SDL_Surface’ undeclared (first use in this function)
first.c:5: error: (Each undeclared identifier is reported only once
first.c:5: error: for each function it appears in.)
first.c:5: error: ‘screen’ undeclared (first use in this function)
first.c:6: error: ‘SDL_INIT_VIDEO’ undeclared (first use in this function)
first.c:7: warning: incompatible implicit declaration of built-in function ‘printf’
first.c:10: error: ‘SDL_Quit’ undeclared (first use in this function)
first.c:11: error: ‘SDL_HWSURFACE’ undeclared (first use in this function)
first.c:13: warning: incompatible implicit declaration of built-in function ‘printf’
Das Paket SDL und SDL-devel habe ich installiert (openSUSE). Was mache ich falch? Hat da einer ne Idee?