digitalmars.D - Windows batch file to compile D code
- "Iain Staffell" <staffell gmail.com> May 03 2012
- David <d dav1d.de> May 03 2012
- Jacob Carlborg <doob me.com> May 04 2012
- Manu <turkeyman gmail.com> May 03 2012
- simendsjo <simendsjo gmail.com> May 03 2012
- "Iain Staffell" <staffell gmail.com> May 04 2012
- "Iain Staffell" <staffell gmail.com> May 04 2012
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.
May 03 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.
May 03 2012
On 2012-05-04 12:37, Iain Staffell wrote:Thanks both for the suggestions. RDMD looks useful, but am I right thinking I can't run it from anywhere unless I'm able to mess with PATH variables?
DVM will handle this for you.I can't figure out where to get started with DVM, so will give that a miss.
simendsjo linked to the new URL, where no pre-compile binaries exist yet. Use this old URL until the next release: https://bitbucket.org/doob/dvm/wiki/Home 1. Download the tool: https://bitbucket.org/doob/dvm/downloads 2. run "dvm.exe install dvm" 3. open a new console window 4. run "dvm install 2.059" 5. run "dvm use 2.059" 6. now "dmd" and "rdmd" will be available You can also add the "-d" flag to the "use" command. This will set the compiler as the default compiler. Instructions are available at the URL above. -- /Jacob Carlborg
May 04 2012
--00248c6a6a426c0cab04bf244f26 Content-Type: text/plain; charset=UTF-8 Are you a visual studio user? Tried VisualD? If not, tried Mono-D? On 3 May 2012 15:31, Iain Staffell <staffell gmail.com> wrote: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<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.
--00248c6a6a426c0cab04bf244f26 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div class=3D"gmail_extra">Are you a visual studio user? Tried VisualD?</di= v><div class=3D"gmail_extra">If not, tried Mono-D?</div><div class=3D"gmail= _extra"><br><div class=3D"gmail_quote">On 3 May 2012 15:31, Iain Staffell <= span dir=3D"ltr"><<a href=3D"mailto:staffell gmail.com" target=3D"_blank= ">staffell gmail.com</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex">Hi all.<br> <br> I have been trying (quite badly) to get started with D for a while.<br> <br> 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. = =C2=A0(I know.. I said I was bad at this..)<br> <br> Second time around I tried harder, and wrote a Windows batch file to make c= ompiling and running my code easier. =C2=A0No messing around with PATH vari= ables or things like that, too difficult.<br> <br> I have been playing around with this for a year or so now, and thought it m= ight be useful to someone else trying to learn D. =C2=A0So here is a batch = file that will automatically compile and run your D code.<br> <br> If you're interested: save <a href=3D"http://wogone.com/code/D2.BAT.TXT= " target=3D"_blank">http://wogone.com/code/D2.BAT.<u></u>TXT</a> to your co= mputer, rename to D2.BAT, then run D2 from a command prompt for further ins= tructions.<br> <br> Hope someone finds it useful, and not too buggy! =C2=A0Any comments or impr= ovements are more than welcome.<br> </blockquote></div><br></div> --00248c6a6a426c0cab04bf244f26--
May 03 2012
On Thu, 03 May 2012 15:29:07 +0200, David <d dav1d.de> wrote: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.
And dvm: https://github.com/jacob-carlborg/dvm
May 03 2012
On Thursday, 3 May 2012 at 18:55:17 UTC, simendsjo wrote:On Thu, 03 May 2012 15:29:07 +0200, David <d dav1d.de> wrote:rdmd? http://dlang.org/rdmd.html
And dvm: https://github.com/jacob-carlborg/dvm
Thanks both for the suggestions. RDMD looks useful, but am I right thinking I can't run it from anywhere unless I'm able to mess with PATH variables? I can't figure out where to get started with DVM, so will give that a miss.
May 04 2012
On Thursday, 3 May 2012 at 16:29:48 UTC, Manu wrote:Are you a visual studio user? Tried VisualD? If not, tried Mono-D?
EditPad is as far as I go! I tried using Code::Blocks about a year ago, but couldn't get it to play nicely with the compiler...
May 04 2012









Jacob Carlborg <doob me.com> 