On Tuesday, 16 February 2016 at 06:22:33 UTC, Rikki Cattermole wrote: > Found the problem, you haven't linked against gdi. Thank you It works. I should have done this: set filesToUse=main.d gdi32.lib dmd @filesToUse -ofconsole-app.exe -debug -unittest -wi