On 21/08/2018 1:42 AM, spikespaz wrote:
I am trying to add a *.def file to my program to hide the console window on launch, as it doesn't need to display anything to function. It is a Windows only application.

I saw at this post (https://forum.dlang.org/post/ilj5vn$ef4$1...@digitalmars.com) that I could either use a linker flag, -L/exet:nt/su:windows, or add a module definition file. I decided on the definition file.

EXETYPE NT
SUBSYSTEM WINDOWS

That is for Optlink not for MSVC link which ldc uses.

Reply via email to