For Win32/OPTLINK, I passed the following flag to dmd in a lil' project of mine:
-L/SUBSYSTEM:WINDOWS:4.0 Worked for me. LMB On Wed, Jul 24, 2013 at 5:24 AM, Rikki Cattermole <alphaglosi...@gmail.com> wrote: > On Wednesday, 24 July 2013 at 08:16:39 UTC, MGW wrote: >> >> On Wednesday, 24 July 2013 at 08:08:19 UTC, Rikki Cattermole wrote: >>> >>> version(Windows) { >>> import core.sys.windows.windows : FreeConsole; >>> FreeConsole(); >>> } >> >> >> DOS window flashes at the start, and that's bad. > > > Take a look at DLL def files. I believe from memory that they will help with > that. > > For Microsofts linker (64bit) take a look at > http://msdn.microsoft.com/en-us/library/vstudio/fcc1zstk.aspx and > /SUBSYSTEM:Windows. > For an example .def file (thats has been made for a dll but should work ok) > look at http://dlang.org/dll.html at mydll.def. > > The later should work for both 64bit and 32bit I believe.