www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - newbie to windows (how to set up D for windows)

reply clayasaurus <clayasaurus gmail.com> writes:
Hello. Recently I've installed Windows XP and I want to get my D project 
to work for it.

I downloaded dmd and dmc (though does dmd come with dmc?) and I've 
copied them to the root C: directory.

I want to use dmd and makefiles to make my program.

How do I get it so I can open a command promt, type dmd, and it will 
show the program information. Right now it just says "dmd is not a program"

Also, are the makefiles in windows any different from the ones in linux?
Do you link dll's by using 'dmd program.d -L opengl -L sdl'

I also need a good text editor with syntax highlighting. Any ideas?
Thanks.
Aug 04 2004
next sibling parent reply Sean Kelly <sean f4.ca> writes:
In article <cerilr$h3v$1 digitaldaemon.com>, clayasaurus says...
Hello. Recently I've installed Windows XP and I want to get my D project 
to work for it.

I downloaded dmd and dmc (though does dmd come with dmc?) and I've 
copied them to the root C: directory.

I want to use dmd and makefiles to make my program.

How do I get it so I can open a command promt, type dmd, and it will 
show the program information. Right now it just says "dmd is not a program"
Control Panel->System->Advanced->Environment Variables add dmd\bin and dm\bin to the PATH system variable
I also need a good text editor with syntax highlighting. Any ideas?
There's a Windows version of emacs if you'd find that familiar. I think you can also get Vim. Plus the usual array of choices mentioned in the D Wiki. Sean
Aug 04 2004
parent reply Arcane Jill <Arcane_member pathlink.com> writes:
In article <cerk2n$i20$1 digitaldaemon.com>, Sean Kelly says...

I also need a good text editor with syntax highlighting. Any ideas?
TextPad www.textpad.com
Aug 04 2004
parent pragma <EricAnderton at yahoo dot com> <pragma_member pathlink.com> writes:
In article <cerl2l$ini$1 digitaldaemon.com>, Arcane Jill says...
In article <cerk2n$i20$1 digitaldaemon.com>, Sean Kelly says...

I also need a good text editor with syntax highlighting. Any ideas?
TextPad www.textpad.com
Here's a Textpad D syntax file to get you going too (careful, it's still a work in progress). - Pragma begin 0644 d.syn M.R!497AT4&%D('-Y;G1A>"!D969I;FET:6]N<R!F;W( 1&EG:71A;"!-87)S M=&%R="`](",-"E-Y;G1A>%-T87)T(#T- M:7 /2`P>`T*0V]M;65N=%-T87)T(#T +RH-"D-O;6UE;G1%;F0 /2`J+PT* M0V]M;65N=%-T87)T06QT(#T +RL-"D-O;6UE;G1%;F1!;'0 /2`K+PT*4VEN M96YT17-C(#T-"E-T<FEN9W-3<&%N3&EN97, /2!997,-"E-T<FEN9U-T87)T M(#T ( T*4W1R:6YG16YD(#T ( T*4W1R:6YG06QT(#T-"E-T<FEN9T5S8R`] M=6)L90T*:7)E86P-"F-F;&]A=`T*8V1O=6)L90T*8W)E86P-"G9O:60-" T* M<G0-"G9E<G-I;VX-"G!R86=M80T*=6YI='1E<W0-"FEN=F%R:6%N=`T*8F]D M(&9O<B!F=6YC=&EO;B!C86QL<PT*.R!O=70 .R`M+2!E>&ES=&$ 87, 82!T M>7!E(&UO9&EF:65R(&9O<B!F=6YC:71O;B!C86QL<PT*:68-"F5L<V4-"G=H M<')E9&5F:6YE9"!P<F]P97)T:65S(&%N9"!C;VYS=&%N=',-"G1H:7,-"G-U M97, 9F]R('!R:6UI=&EV97,-"FEN:70)"0T*<VEZ96]F"0D-"G-I>F4)"0T* M86QI9VYO9 D-"FEN9FEN:71Y"0T*;F%N"0D-"G-I9VX)"0T*:7-N86X)"0T* M('!R961E9FEN960 ='EP97,-"F)O;VP-"G-T<FEN9PT*='EP96EN9F\-" T* ` end
Aug 04 2004
prev sibling next sibling parent stonecobra <scott stonecobra.com> writes:
clayasaurus wrote:

 How do I get it so I can open a command promt, type dmd, and it will 
 show the program information. Right now it just says "dmd is not a program"
Start | Run | Type cmd, Press Enter. Then you have the closest thing to a terminal window, where you can: c: cd \dmd\bin dmd etc. Scott
Aug 04 2004
prev sibling next sibling parent "C. Sauls" <ibisbasenji yahoo.com> writes:
clayasaurus wrote:
 Hello. Recently I've installed Windows XP and I want to get my D project 
 to work for it.
 
 I downloaded dmd and dmc (though does dmd come with dmc?) and I've 
 copied them to the root C: directory.
You did right, just a tip: copy dmc first, then dmd and answer "Yes to all" to the prompt on overwrites. You probably did that anyhow.
 I want to use dmd and makefiles to make my program.
 
 How do I get it so I can open a command promt, type dmd, and it will 
 show the program information. Right now it just says "dmd is not a program"
Get ready, this is going to be fun. :) 1 - First, right-click the "My Computer" icon, in any of its many homes (desktop, start menu, sometimes even Quick Launch bar). 2 - Select the "Properties" item to bring up the "System Properties" dialog. 3 - Select the "Advanced" tab. 4 - Near the bottom is a button labeled "Environment Variables". You guessed it, click that. 5 - You now have two choices, a list of "User variables for $yourname" and a list of "System variables". Under "System variables" there should be one named "Path". Select that, and hit the "Edit" button under the list. 6 - In the resulting "Edit System Variable" dialog, add the following text to the end of the "Variable value" textfield: ;C:\dm\bin;C:\dmd\bin 7 - Now press "OK" buttons like a mad man! Don't worry, there shouldn't be any of those evil "Are you sure?" dialogs. *shiver* And that should do it. <usen:sarcasm>Gee, wasn't that intuitive?</usen:sarcasm>
 Also, are the makefiles in windows any different from the ones in linux?
 Do you link dll's by using 'dmd program.d -L opengl -L sdl'
I believe it will be the same, but presumably with no space after -L though I can't be 100% sure... I've yet to link in a DLL with D.
 I also need a good text editor with syntax highlighting. Any ideas?
 Thanks.
I'm fond of EditPlus, myself... http://www.editplus.com/ I don't recommend the D syntax available on their site though... Its outdated and just... odd. To me anyway. My own more-up-to-date one is floating around the NG somewhere and has probably propagated to the Wiki... I know the last one did. I'd put it there myself, but I've never gotten the hang of that Wiki thing. -Chris S. -Invironz
Aug 04 2004
prev sibling parent Ilya Minkov <minkov cs.tum.edu> writes:
clayasaurus schrieb:

 I also need a good text editor with syntax highlighting. Any ideas?
 Thanks.
SciTE (both for Windows and Linux) www.scintilla.org CREdit (not very good with XP, but nice otherwise) http://www.praven3.com/credit/ -eye
Aug 05 2004