how i may compile sdl in linux


   How can compile a sdl program in 

Linux from the command prompt?..Like I compile opengl using just one command which
links the necessary libs.

Thanks in advance,

gcc/g++ [flags] -o target <source-files> sdl-config --cflags --libs

That’s pretty much it. Once you need OpenGL, you just add -lGL to the end.