Thread overview | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
November 06, 2013 How to compile and test samples under Windows? | ||||
---|---|---|---|---|
| ||||
I installed the DMD32 D Compiler v2.063.2 into C:\ I try to complie and test the dserver.d sample specifically, but when I run build.bat in the dmd2\samples\d directory, I've got the following errors. C:\D\dmd2\samples\d>..\..\windows\bin\shell all.sh shell 1.05 ..\..\windows\bin\dmd d2html d2html.d(38): Error: undefined identifier whitespace d2html.d(45): Error: undefined identifier letters d2html.d(51): Error: undefined identifier digits d2html.d(57): Error: undefined identifier hexdigits d2html.d(63): Error: undefined identifier octdigits --- errorlevel 1 What did I do wrong? What could be missing? |
November 06, 2013 Re: How to compile and test samples under Windows? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam Ryczkowski | On Wednesday, 6 November 2013 at 09:02:57 UTC, Adam Ryczkowski wrote:
> I installed the DMD32 D Compiler v2.063.2 into C:\
>
> I try to complie and test the dserver.d sample specifically, but
> when I run build.bat in the dmd2\samples\d directory, I've got
> the following errors.
>
> C:\D\dmd2\samples\d>..\..\windows\bin\shell all.sh
> shell 1.05
> ..\..\windows\bin\dmd d2html
> d2html.d(38): Error: undefined identifier whitespace
> d2html.d(45): Error: undefined identifier letters
> d2html.d(51): Error: undefined identifier digits
> d2html.d(57): Error: undefined identifier hexdigits
> d2html.d(63): Error: undefined identifier octdigits
>
> --- errorlevel 1
>
>
> What did I do wrong? What could be missing?
you are running .sh script instead of .bat on windows. and looks like this samples a bit outdated, though d2html looks fine.
|
November 06, 2013 Re: How to compile and test samples under Windows? | ||||
---|---|---|---|---|
| ||||
Posted in reply to evilrat | Thank you for the answer. This is the contents of the build.bat, which is shipped with the D instalation: ..\..\windows\bin\shell all.sh Can you tell me, what is outdated? |
November 06, 2013 Re: How to compile and test samples under Windows? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam Ryczkowski | On Wednesday, 6 November 2013 at 10:38:29 UTC, Adam Ryczkowski wrote:
> Thank you for the answer.
>
> This is the contents of the build.bat, which is shipped with the D instalation:
>
> ..\..\windows\bin\shell all.sh
>
> Can you tell me, what is outdated?
pi sample at least has compile errors.
|
November 06, 2013 Re: How to compile and test samples under Windows? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam Ryczkowski | ...All the samples I use are shipped with the DMD32 D Compiler v2.063.2 instalation package for Windows. I've just reinstalled D to make sure that. |
November 06, 2013 Re: How to compile and test samples under Windows? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam Ryczkowski | On Wednesday, 6 November 2013 at 10:46:39 UTC, Adam Ryczkowski wrote:
> ...All the samples I use are shipped with the DMD32 D Compiler v2.063.2 instalation package for Windows. I've just reinstalled D to make sure that.
no, i mean its not get updated to fetch with phobos changes. though it should be simple to fix.
|
November 07, 2013 Re: How to compile and test samples under Windows? | ||||
---|---|---|---|---|
| ||||
Posted in reply to evilrat | Is this simple enough to explain me what I need to do? I'm new to the D language. |
November 08, 2013 Re: How to compile and test samples under Windows? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam Ryczkowski | On Thursday, 7 November 2013 at 14:27:55 UTC, Adam Ryczkowski wrote:
> Is this simple enough to explain me what I need to do? I'm new to the D language.
do you really need that pi exapmle? i see it's the only exapmle which fails to build, others works fine.
|
November 09, 2013 Re: How to compile and test samples under Windows? | ||||
---|---|---|---|---|
| ||||
Posted in reply to evilrat | On Friday, 8 November 2013 at 04:40:57 UTC, evilrat wrote:
> On Thursday, 7 November 2013 at 14:27:55 UTC, Adam Ryczkowski wrote:
>> Is this simple enough to explain me what I need to do? I'm new to the D language.
>
> do you really need that pi exapmle? i see it's the only exapmle which fails to build, others works fine.
I badly need to build a working COM server, so I can extend the already existing and mature VB6 project. In time I'd like to migrate into D entirely, this will be a just a small first step.
|
November 09, 2013 Re: How to compile and test samples under Windows? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam Ryczkowski | This reminded me to come back to this (I was commenting on stack overflow a few days ago too). Spun up an XP box and now I can reproduce your problem. Strangely, the same exe and dll work on Vista computer still! But at least I can see the problem on XP so maybe I can help figure this out now.... |
Copyright © 1999-2021 by the D Language Foundation