SDL_image 1.2.3: Compiling

[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

## 2.2 Compiling

To link with SDL_image you should use sdl-config to get the required SDL compilation options. After that, compiling with SDL_image is quite easy.
Note: Some systems may not have the SDL_image library and include file in the same place as the SDL library and includes are located, in that case you will need to add more -I and -L paths to these command lines.

Simple Example for compiling an object file: `cc -c `sdl-config --cflags` mysource.c` Simple Example for compiling an object file: `cc -o myprogram mysource.o `sdl-config --libs` -lSDL_image`

Now `myprogram` is ready to run.

This document was generated on June, 12 2003 using texi2html