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($0-" T*0STQ#0H-"EM3>6YT87A=#0I.86UE<W!A8V4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`I#0I35" Q*0T*4U0H,BD-"E-4*#,I M#0I35" T*0T*4U0H-2D-"E-4*#8I#0I35" W*0T*34TP#0I-33$-"DU-, T* 834TS#0I-330-"DU--0T*34TV#0I-33< ` 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