www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - How to pass the subsystem flag to the linker?

reply "Mikko Ronkainen" <mikoro iki.fi> writes:
I'm using ldc2 on windows with mingw-w64. I want to set subsystem 
to windows, so I need to supply ld with the flag "--subsystem 
windows" (am I correct?). I want to pass this flag from the ldc2 
command, so I need to use "-L=--subsystem windows". This doesn't 
work, the compiler instead tries to find windows.d file for 
compiling. Using single or double quotes didn't help either.

How should I input the subsystem linker flag?
Nov 24 2013
parent reply "Mikko Ronkainen" <mikoro iki.fi> writes:
One second after posting I tried replacing the space between the 
words with "=" and it worked :)
Nov 24 2013
parent "Kai Nacke" <kai redstar.de> writes:
Hi Mikko!

On Sunday, 24 November 2013 at 20:33:37 UTC, Mikko Ronkainen 
wrote:
 One second after posting I tried replacing the space between 
 the words with "=" and it worked :)
:-) Regards, Kai
Nov 25 2013