Re: How to Declare a new pragma ?

2014-12-22 Thread FrankLike via Digitalmars-d-learn
On Monday, 22 December 2014 at 00:55:08 UTC, Mike Parker wrote: 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 paramete

Re: How to Declare a new pragma ?

2014-12-21 Thread Mike Parker via Digitalmars-d-learn
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 pass

Re: How to Declare a new pragma ?

2014-12-21 Thread FrankLike via Digitalmars-d-learn
On Sunday, 21 December 2014 at 17:04:45 UTC, ketmar via Digitalmars-d-learn wrote: On Sun, 21 Dec 2014 16:42:45 + FrankLike via Digitalmars-d-learn wrote: I want to get that : pragma(link, "SUBSYSTEM WINDOWS,4.0"); But get error:pragma link unrecognized pragma(link)? How can I to do?

Re: How to Declare a new pragma ?

2014-12-21 Thread ketmar via Digitalmars-d-learn
On Sun, 21 Dec 2014 16:42:45 + FrankLike via Digitalmars-d-learn wrote: > I want to get that : pragma(link, "SUBSYSTEM WINDOWS,4.0"); > > But get error:pragma link unrecognized pragma(link)? > How can I to do? > > Thank you. you have to patch the compiler to recognize your new pragma and d

How to Declare a new pragma ?

2014-12-21 Thread FrankLike via Digitalmars-d-learn
I want to get that : pragma(link, "SUBSYSTEM WINDOWS,4.0"); But get error:pragma link unrecognized pragma(link)? How can I to do? Thank you.