I recently moved to linux and i\'m having an issue with compiling SDL C programs using gcc.
The command i\'m using:
gcc `sdl-config --cflags --libs`
Add -lSDL with gcc compile command. This will add sdl library. Install sdl developement package before compiling.
-lSDL
EDIT:
gcc -o out main.c -lSDL
or
gcc -I/usr/include/SDL/ main.c -o out -L/usr/lib -lSDL