I downloaded SDL2-2.0.3. I ran ./configure && make && make install.
SDL2-2.0.3
./configure && make && make install
I\'ve also tried brew install SDL2.
brew install SDL2
You are failing to link with libSDL2.{a,dylib}.
libSDL2.{a,dylib}
You want:
gcc -o main main.c -lSDL2
or perhaps:
gcc -o main main.c -L/usr/local/lib -lSDL2