I am trying to use SDL. I have a folder in /Library/Frameworks called SDL2.framework. I want to include the file SDL.h in my project.
you will want to make a build script for this obviously, but the important parts are:
-I/usr/local/include or wherever your headers get installed.
I used home brew:
brew install sdl2
which puts the libraries in /usr/local/Cellar/
so if you need to specify the lib path you will also add:
-L/usr/local/lib -lSDL2
I also changed your include line to #include