Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
April 23, 2007 Windows *.exe | ||||
---|---|---|---|---|
| ||||
Hello, is there a way to compile *.exe files for windows with d? |
April 23, 2007 Re: Windows *.exe | ||||
---|---|---|---|---|
| ||||
Posted in reply to johnny | johnny wrote: > Hello, > > is there a way to compile *.exe files for windows with d? Yes. As long as your program has a main function, DMD will spit out an executable. Out of curiosity, what did you think it output? :) -- Daniel -- int getRandomNumber() { return 4; // chosen by fair dice roll. // guaranteed to be random. } http://xkcd.com/ v2sw5+8Yhw5ln4+5pr6OFPma8u6+7Lw4Tm6+7l6+7D i28a2Xs3MSr2e4/6+7t4TNSMb6HTOp5en5g6RAHCP http://hackerkey.com/ |
April 23, 2007 Re: Windows *.exe | ||||
---|---|---|---|---|
| ||||
Posted in reply to johnny | johnny schrieb:
> Hello,
>
> is there a way to compile *.exe files for windows with d?
short answer: yes
long answer: Download the official compiler package from digitalmars.com (or gdc), write your program and compile it with dmd mysource.d
- that will get you an exe.
david
|
April 23, 2007 Re: Windows *.exe | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel Keep | Daniel Keep schrieb:
> johnny wrote:
>> Hello,
>>
>> is there a way to compile *.exe files for windows with d?
>
> Yes. As long as your program has a main function, DMD will spit out an
> executable.
>
> Out of curiosity, what did you think it output? :)
>
> -- Daniel
>
Daniel, you know the martians - you can never be sure...
|
April 23, 2007 Re: Windows *.exe | ||||
---|---|---|---|---|
| ||||
Posted in reply to david | david Wrote: > johnny schrieb: > > Hello, > > > > is there a way to compile *.exe files for windows with d? > > short answer: yes > > long answer: Download the official compiler package from digitalmars.com (or gdc), write your program and compile it with dmd mysource.d ah ok thank you. I was only trying D under Linux... thats it with the stupid questions > - that will get you an exe. > > david ah, ok thank you. I was only trying D under Linux, ... stupid question sure. |
April 23, 2007 Re: Windows *.exe | ||||
---|---|---|---|---|
| ||||
Posted in reply to johnny | johnny wrote: >> long answer: Download the official compiler package from digitalmars.com (or gdc), write your program and compile it with dmd mysource.d > > ah, ok thank you. I was only trying D under Linux, ... stupid question sure. You can compile Windows programs in Linux, by using the MinGW compiler. Some older precompiled packages are at http://gdcwin.sourceforge.net/ --anders |
Copyright © 1999-2021 by the D Language Foundation