Here\'s a piece of my current Makefile:
CFLAGS = -O2 -Wall -pedantic -std=gnu++11 `sdl-config --cflags --libs` -lSDL_mixer
I have libsdl instal
Most times SDL is in /usr/include/SDL
. If so then your #include
directive is wrong, it should be #include
.
An alternative for that is adding the /usr/include/SDL
directory to your include directories. To do that you should add -I/usr/include/SDL
to the compiler flags...
If you are using an IDE this should be quite easy too...