How to Declare a new pragma ?

Mike Parker via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Dec 21 16:55:08 PST 2014


On 12/22/2014 9:21 AM, FrankLike wrote:

>
> Now ,x64  mainform  always  have  the  console  window,and  the entry
> is main.
> could  you  do  it?
> Thank  you.

Since 64-bit DMD uses the Microsoft toolchain, you need to pass a 
parameter on the command line to the MS linker. Linker parameters are 
passed with -L <parameter>

See [1] for information about the /SUBSYSTEM option, which is what you 
want in this case. Probably something like this:

-L/SUBSYSTEM:WINDOWS,5.02

[1] http://msdn.microsoft.com/en-us/library/fcc1zstk.aspx


More information about the Digitalmars-d-learn mailing list