Building Games with libcrtxy

Using crtxy-config to compile and link

Use the crtxy-config command get the options necessary to compile and link an application against libcrtxy.

Note: Since libcrtxy depends on libSDL, the output of crtxy-config includes the output of libSDL's sdl-config for --cflags, --libs and --static-libs.

Using crtxy-config to compile and link

crtxy-config --cflags should have told your compiler where to find libcrtxy's headers, so you should include the main header like this:

#include "crtxy.h"

Note: libcrtxy depends on libSDL, so its SDL.h is included automatically. SDL_image library's SDL_image.h may also have been included. However, no harm is done by including them in your own source.


Generated on Sat Aug 16 22:15:09 2008 for libcrtxy by  doxygen 1.5.5