how to compile D programs without console window
rikki cattermole
rikki at cattermole.co.nz
Sat Jul 14 09:39:21 UTC 2018
On 14/07/2018 9:32 PM, Flaze07 wrote:
> how do you compile a D programs without a console window ? I found this
> link
> https://wiki.dlang.org/D_for_Win32 I know that you need .def file, but
> how do you link to .def ?
WinAPI:
FreeConsole();
Optlink linker (default for 32bit):
-L/SUBSYSTEM:windows
MSVC linker:
-L/SUBSYSTEM:windows -L/ENTRY:mainCRTStartup
If you're using dub, throw them into lflags and remove the -L.
https://forum.dlang.org/post/gmcsxgfsfnwllplookmg@forum.dlang.org
More information about the Digitalmars-d-learn
mailing list