I'm just trying to test my SDL installation (I've used apt install libsdl2-dev), I've included the library and tried this code to see if it works, I even got no errors and the return of SDL_Init is successful, but I can't see any window showing up :
#include <stdio.h>
#include <SDL2/SDL.h>
int main()
{
printf("%d", SDL_Init(SDL_INIT_EVERYTHING));
}
this is the compilation flag that I'm using :
gcc -c lol.c `pkg-config sdl2 --cflags`
I've tried also this but it doesn't work too :
gcc -o program_name lol.c -std=c99 -I/usr/include/SDL2 -lSDL2main -lSDL2