SDL_LoadBMP is declared as: SDL_Surface *SDL_LoadBMP(const char *file); http://www.libsdl.org/cgi/docwiki.cgi/SDL_LoadBMP So you don't need a mutable char*. I'd recommend using Derelict since it already has all these prototypes declared properly.