[SDL] Compiling on Linux
Bill Kendrick
nbs at sonic.net
Thu Jun 28 12:02:27 PDT 2007
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/
More information about the SDL
mailing list