Trouble with LDC2 and definition file to hide console?

rikki cattermole rikki at cattermole.co.nz
Mon Aug 20 13:49:19 UTC 2018


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.


More information about the Digitalmars-d-learn mailing list