Windows batch file to compile D code

David d at dav1d.de
Thu May 3 06:29:07 PDT 2012


Am 03.05.2012 14:31, schrieb Iain Staffell:
> Hi all.
>
> I have been trying (quite badly) to get started with D for a while.
>
> On my first attempt I gave up before even compiling Hello World, because
> it was too difficult to find out how to even compile a program in
> Windows. (I know.. I said I was bad at this..)
>
> Second time around I tried harder, and wrote a Windows batch file to
> make compiling and running my code easier. No messing around with PATH
> variables or things like that, too difficult.
>
> I have been playing around with this for a year or so now, and thought
> it might be useful to someone else trying to learn D. So here is a batch
> file that will automatically compile and run your D code.
>
> If you're interested: save http://wogone.com/code/D2.BAT.TXT to your
> computer, rename to D2.BAT, then run D2 from a command prompt for
> further instructions.
>
> Hope someone finds it useful, and not too buggy! Any comments or
> improvements are more than welcome.
rdmd? http://dlang.org/rdmd.html


More information about the Digitalmars-d mailing list