crtxy-config
command get the options necessary to compile and link an application against libcrtxy.
crtxy-config --cflags
gcc game.c -c `crtxy-config --cflags`
crtxy-config --libs
gcc -o game game.o other.o `crtxy-config --libs`
crtxy-config --static-libs
gcc -o game game.o other.o `crtxy-config --static-libs`
crtxy-config --version
crtxy-config
includes the output of libSDL's sdl-config
for --cflags, --libs and --static-libs.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.