PDA

View Full Version : how i may compile sdl in linux



c_anindya
11-07-2002, 12:03 PM
Hello,

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,
anindya

aggregate
11-07-2002, 01:15 PM
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.