Jump to page: 1 25  
Page
Thread overview
installation on Win32
Apr 29, 2005
Phlip
Apr 29, 2005
jicman
Apr 29, 2005
David L. Davis
Apr 29, 2005
Phlip
Apr 29, 2005
David L. Davis
Apr 30, 2005
Phlip
Apr 29, 2005
Phlip
Apr 29, 2005
David L. Davis
Apr 30, 2005
Derek Parnell
Apr 30, 2005
Phlip
Apr 30, 2005
J C Calvarese
Apr 30, 2005
Derek Parnell
Apr 30, 2005
Phlip
May 08, 2005
Walter
WELCOME (was: installation on Win32)
Apr 30, 2005
Manfred Nowak
Apr 30, 2005
Phlip
Re: WELCOME
May 01, 2005
J C Calvarese
May 01, 2005
Manfred Nowak
May 01, 2005
Phlip
May 01, 2005
Derek Parnell
May 01, 2005
Phlip
May 01, 2005
John Reimer
May 01, 2005
Phlip
May 01, 2005
John Reimer
May 01, 2005
Phlip
May 01, 2005
John Reimer
May 01, 2005
Phlip
May 01, 2005
Sammy
May 02, 2005
Phlip
May 01, 2005
Derek Parnell
May 01, 2005
Phlip
May 01, 2005
John Reimer
Re: WELCOME
May 01, 2005
Derek Parnell
May 01, 2005
jicman
May 01, 2005
Manfred Nowak
May 02, 2005
jicman
May 02, 2005
Manfred Nowak
Apr 30, 2005
J C Calvarese
Apr 30, 2005
Derek Parnell
May 01, 2005
Sammy
May 08, 2005
Walter
April 29, 2005
Hi.

I don't have a 20-year resume covering thousands of computer science topics, from fractals to web sites. I just fell off a turnip truck next to a laptop.

How does someone as stupid as me install the D Language on Win32?

 cd c:\
 unzip dm.zip
 unzip dmc.zip

add c:\dm\bin to the PATH, then get into dmd/samples/d, and:

 dmc hello.d

That produces:
    Error: Error reading file 'object.d'

All the Google citations for this error message cite Linux. What do I tweak?

-- 
  Phlip
  http://www.c2.com/cgi/wiki?ZeekLand


April 29, 2005
Phlip says...
>
>Hi.
>
>I don't have a 20-year resume covering thousands of computer science topics, from fractals to web sites. I just fell off a turnip truck next to a laptop.
>
>How does someone as stupid as me install the D Language on Win32?
>
> cd c:\
> unzip dm.zip
> unzip dmc.zip
>
>add c:\dm\bin to the PATH, then get into dmd/samples/d, and:
>
> dmc hello.d

Not that I am not smarter or anything, but I would instead do dmd.  You probably didn't install the d compiler, since you have dmc instead of dmd.  I would suggest for you to take a look at a litter utility called build,

http://www.dsource.org/projects/build/

It will save you so many steps and grieves!  But I think you installed the c
compiler (dmC) instead of the D compiler (dmD).

I hope that helps.

jic

>
>That produces:
>    Error: Error reading file 'object.d'
>
>All the Google citations for this error message cite Linux. What do I tweak?
>
>-- 
>  Phlip
>  http://www.c2.com/cgi/wiki?ZeekLand
>
>


April 29, 2005
In article <d4u7i0$1m9u$1@digitaldaemon.com>, Phlip says...
>
>Hi.
>
>I don't have a 20-year resume covering thousands of computer science topics, from fractals to web sites. I just fell off a turnip truck next to a laptop.
>
>How does someone as stupid as me install the D Language on Win32?
>
> cd c:\
> unzip dm.zip
> unzip dmc.zip
>
>add c:\dm\bin to the PATH, then get into dmd/samples/d, and:
>
> dmc hello.d
>
>That produces:
>    Error: Error reading file 'object.d'
>
>All the Google citations for this error message cite Linux. What do I tweak?
>
>-- 
>  Phlip
>  http://www.c2.com/cgi/wiki?ZeekLand
>
>

Phlip, check out steps 1 thru 4 on the left-hand menu on my D web site...I think that may help you out.

MKoD: http://spottedtiger.tripod.com/D_Language/D_Main_XP.html

;But for a quick look see, you can do the following:
@REM start the WinXP command window
cmd.exe

@REM move the the root directory of C:
cd C:\

@REM should unzip to C:\dm unzip dm.zip

@REM should unzip to C:\dmd
unzip dmd.zip

@REM change the directory to D
cd dmd

@REM This temporary sets up D's directories
set path=%path%+"C:\dm\bin;C:\dmd\bin;"

@REM move into the sample\d directory cd samples\d

@REM compile the hello.d exmple
dmd hello.d

@REM run hello.exe
hello

Hope this helps you out,
David L.

-------------------------------------------------------------------
"Dare to reach for the Stars...Dare to Dream, Build, and Achieve!"
-------------------------------------------------------------------

MKoD: http://spottedtiger.tripod.com/D_Language/D_Main_XP.html
April 29, 2005
David L. Davis wrote:

> MKoD: http://spottedtiger.tripod.com/D_Language/D_Main_XP.html

Dude, just today I was thinking to myself I had not seen anything incredibly sick in a very long time.

Then I hit this:

http://spottedtiger.tripod.com/D_Language/D_Whats_Needed_XP.html

Folks, that web page contains a screen-shot of another web page (frame and all), with anotations Photoshopped into it.

I prostrate myself in honor.

-- 
  Phlip
  http://www.c2.com/cgi/wiki?ZeekLand


April 29, 2005
I'm afraid that should be:

set path=%path%;C:\dm\bin;C:\dmd\bin;

This ain't bash or perl :P.

-[Unknown]


> @REM This temporary sets up D's directories
> set path=%path%+"C:\dm\bin;C:\dmd\bin;"
April 29, 2005
Unknown W. Brackets wrote:

> I'm afraid that should be:
>
> set path=%path%;C:\dm\bin;C:\dmd\bin;

Okay, add that to the _short_ directions - the ones for people who remember 8-inch floppies.

And thanks, jicman, but both dmd and dmc had the same issue.

Now back to David:

http://spottedtiger.tripod.com/D_Language/D_Compile_1st_Program_XP.html

Noop. I still get the aforementioned error message, all my paths are correct, and my WinXP environment is a soup of various CygWin and MS compilers. D depends not on INCLUDE, right?

Noop:

C:\dmd\samples\d>set INCLUDE=

C:\dmd\samples\d>dmd hello.d
Error: Error reading file 'object.d'

Now what? go dumpster diving for an old Pentium to install Linux on? don't tempt me!

-- 
  Phlip
  http://www.c2.com/cgi/wiki?ZeekLand


April 29, 2005
In article <d4ufva$1sq3$1@digitaldaemon.com>, Phlip says...
>
>David L. Davis wrote:
>
>> MKoD: http://spottedtiger.tripod.com/D_Language/D_Main_XP.html
>
>Dude, just today I was thinking to myself I had not seen anything incredibly sick in a very long time.
>
>Then I hit this:
>
>http://spottedtiger.tripod.com/D_Language/D_Whats_Needed_XP.html
>
>Folks, that web page contains a screen-shot of another web page (frame and all), with anotations Photoshopped into it.
>
>I prostrate myself in honor.
>
>-- 
>  Phlip
>  http://www.c2.com/cgi/wiki?ZeekLand
>

Well, I'll be damned!! ...you just can't help some people. :(

David L.

-------------------------------------------------------------------
"Dare to reach for the Stars...Dare to Dream, Build, and Achieve!"
-------------------------------------------------------------------

MKoD: http://spottedtiger.tripod.com/D_Language/D_Main_XP.html
April 29, 2005
In article <d4ufve$1sm6$1@digitaldaemon.com>, Unknown W. Brackets says...
>
>I'm afraid that should be:
>
>set path=%path%;C:\dm\bin;C:\dmd\bin;
>
>This ain't bash or perl :P.
>
>-[Unknown]
>
>
>> @REM This temporary sets up D's directories
>> set path=%path%+"C:\dm\bin;C:\dmd\bin;"

Yeah you're right. Thanks for pointing it out.

David L.

-------------------------------------------------------------------
"Dare to reach for the Stars...Dare to Dream, Build, and Achieve!"
-------------------------------------------------------------------

MKoD: http://spottedtiger.tripod.com/D_Language/D_Main_XP.html
April 30, 2005
David L. Davis wrote:

> >I prostrate myself in honor.

> Well, I'll be damned!! ...you just can't help some people. :(

Sorry to be obfuscating. I meant it's a good thing. Just ... twisted. ;-)

-- 
  Phlip
  http://www.c2.com/cgi/wiki?ZeekLand


April 30, 2005
On Fri, 29 Apr 2005 14:04:49 -0700, Phlip wrote:

> Hi.
> 
> I don't have a 20-year resume covering thousands of computer science topics, from fractals to web sites. I just fell off a turnip truck next to a laptop.

That's okay. Can I go through some confirmations with you then?

> How does someone as stupid as me install the D Language on Win32?
> 
>  cd c:\
>  unzip dm.zip
>  unzip dmc.zip

I guess you left out from your message that you also unzipped the 'dmd.zip'? I only ask because dmc is the C++ compiler and dmd is the D compiler. You need both to compile D programs.

Anyhow did that create the folders correctly? In other words, do you now have a C:\dm and a c:\dmd folders and do they have all their sub folders looking good? In the c:\dmd folder there should be a bin, html, lib, man, samples, and src sub-folder.

> add c:\dm\bin to the PATH, then get into dmd/samples/d, and:

You need to add two entries to the PATH.

 c:\dm\bin  *and* c:\dmd\bin

I don't know which Windows version you have so I'd reboot just to make sure
that the additions to PATH took effect. And then after rebooting, type in
PATH on the command line to verify that your changes are there.

>  dmc hello.d

We *are* talking about the D language, no? 'dmc' is the C++ compiler. To invoke D you need to enter "dmd hello.d"

> That produces:
>     Error: Error reading file 'object.d'

I get a totally other set of error messages ...
------------------------------------------------
F:\dmd\samples\d>dmc hello.d
f:\dmd\bin\..\..\dm\bin\link.exe hello,,,user32+kernel32/noi;
link hello,,,user32+kernel32/noi;
OPTLINK (R) for Win32  Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

phobos.lib
 Warning 2: File Not Found phobos.lib
OPTLINK : Warning 23: No Stack
hello.obj(hello)
 Error 42: Symbol Undefined _main
hello.obj(hello)
 Error 42: Symbol Undefined __acrtused_con
OPTLINK : Warning 134: No Start Address

--- errorlevel 2
------------------------------------------------

But when I use the D language compiler I get ...

------------------------------------------------
F:\dmd\samples\d>dmd hello.d f:\dmd\bin\..\..\dm\bin\link.exe hello,,,user32+kernel32/noi;
------------------------------------------------

No errors.

In order to get the error you describe, I renamed "\dmd\src\" to "\dmd\srcx\" in order to hide it from the compiler, then reran the command line. I then got ...
--------------------------------------------------
F:\dmd\samples\d>dmc hello.d
Error: Error reading file 'object.d'

--- errorlevel 1
--------------------------------------------------

So I guess that somehow, when you unzipped the dmd.zip file, you managed to place the \dmd\src\ folder somewhere else or maybe you didn't unzip that folder, or maybe its empty, or maybe just \dmd\src\phobos\object.d is missing...but whatever, I'm guessing that it isn't where DMD is expecting it to be.

-- 
Derek Parnell
Melbourne, Australia
http://www.dsource.org/projects/build
30/04/2005 11:03:35 AM
« First   ‹ Prev
1 2 3 4 5