[SDL] Compiling on Linux

Joshua Shriver jshriver at gmail.com
Thu Jun 28 12:05:12 PDT 2007


Thanks that worked. :) How do you use sprite maps? Where you have a
bunch of sprite frame in a single image.

-Josh

On 6/28/07, Bill Kendrick <nbs at sonic.net> wrote:
> On Thu, Jun 28, 2007 at 02:44:30PM -0400, Joshua Shriver wrote:
> > How would you compile a SDL app using gcc with just 1 main.c files?
> >
> > I tried gcc -o main main.c but I get errors, not sure what the linking
> > argument is to link to libsdl.
>
> gcc -o main main.c `sdl-config --cflags --libs`
>
> ...I believe.
>
>
> --
> -bill!
> bill at newbreedsoftware.com
> http://www.newbreedsoftware.com/
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>


More information about the SDL mailing list