Guten Morgen ich hab ein Problem mit dem kompilieren von einem SDl Programm. Ich arbeite unter Ubuntu.
1 | #include "stdio.h" |
2 | #include <stdlib.h> |
3 | #include "/usr/include/SDL/SDL.h" |
4 | |
5 | |
6 | int main(void) |
7 | {
|
8 | SDL_Surface *screen; |
9 | if (SDL_Init(SDL_INIT_VIDEO) == -1) |
10 | {
|
11 | printf("Can't init SDL: %s\n", SDL_GetError()); |
12 | exit(1); |
13 | }
|
14 | |
15 | return 0; |
16 | }
|
Kompilieren tue ich das ganze so: gcc sdl1.c -o sdl1 'sdl-config --cflags --libs' Als Fehlermeldung erhalte ich: cc: sdl-config --cflags --libs: No such file or directory Was kann ich tun, damit ich mein Programm vollständig kompilieren kann?