This is an example C++ application using the SDL2 library.
On Fedora (64bit) you can install the SDL2 library as follows:
$ sudo dnf install SDL2-devel.x86_64 SDL2_image-devel.x86_64 SDL2.x86_64 SDL2_image.x86_64
The easiest way to compile is to use a command-line (tested using g++ (GCC) 6.3.1 20161221 (Red Hat 6.3.1-1))
$ g++ -c src/*.cpp -I /usr/include/SDL2/
$ g++ -o starship *.o -lSDL2 -lSDL2_image
which will produce an executable file called "starship" in the top-level directory. To execute this file do the following
$ ./starship
from the top-level directory. The game will expect to find the
assets
directory under its current working directory.
The sprites in this game come directly from SpriteLib and are used under the terms of the CPL 1.0.