This is part of a bigger project I'm currently developing, some
dependencies are missing but the dlib_generator is runable
independently.

This is an implementation of an cross platform dynamic shared
library loader and code generator as I've described it in
this article:

http://sixserv.org/2010/05/21/dynamic-loading-of-sdl/

The dlib_generator is a code generator for this type of
dynamic loading. I've included example configurations for
generating loaders for SDL and OpenGl(gl/glu).


-- Disclaimer
In general, there is no real need to do this, you can just 
link with the libraries you use. The original idea was to
support different libraries besides SDL, like SFML or GLUT,
and load just the library that the user has configured 
during runtime.