I have installed SDL with the command:
brew install sdl2
However, I don't know what to include in my .c file. Can anyone help me?
I tried to #include <SDL.h>
, <SDL2.h>
, <SDL/SDL2.h>
, <SDL/SDL2_main.h>
and compile with the command:
gcc `sdl-config --cflags --libs` -o main.x main.c
Thank you all for your answers and advices, I resolved the problem by making a Makefile using this flag :
CFLAGS = -Wall -Wextra -std=c11 -I/usr/local/include/SDL2
See you on another question.