On Wednesday, 19 June 2019 at 17:28:38 UTC, XavierAP wrote: > > Also, the return type of SDL_LoadBMP is a pointer, SDL_Surface* > not just SDL_Surface. Or just use auto of course if you prefer: void load (string path) { import std.string : toStringz; auto ab = SDL_LoadBMP (path.toStringz);