www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Windows *.exe

reply johnny <bierbauch jenz.info> writes:
Hello,

is there a way to compile *.exe files for windows with d?
Apr 23 2007
next sibling parent reply Daniel Keep <daniel.keep.lists gmail.com> writes:
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/
Apr 23 2007
parent david <tazz gmx.at> writes:
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...
Apr 23 2007
prev sibling parent reply david <tazz gmx.at> writes:
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
Apr 23 2007
parent reply johnny <bierbauch jenz.info> writes:
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.
Apr 23 2007
parent =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
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
Apr 23 2007