Thread overview
newbie to windows (how to set up D for windows)
Aug 04, 2004
clayasaurus
Aug 04, 2004
Sean Kelly
Aug 04, 2004
Arcane Jill
Re: newbie to windows (how to set up D for windows) - d.syn
Aug 04, 2004
pragma
Aug 04, 2004
stonecobra
Aug 04, 2004
C. Sauls
Aug 05, 2004
Ilya Minkov
August 04, 2004
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.
August 04, 2004
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


August 04, 2004
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
August 04, 2004
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
August 04, 2004
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



August 04, 2004
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


August 05, 2004
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