@dawgfoto This code is only for posix systems, not Windows. Also, the temp filename is to be passed to the linker which uses it to write the executable. dmd does not open the file, hence mkstemp() does not work.