September 11, 2007
Johannes wrote:
> Regan Heath Wrote:
>> If you want DMD to look for imports or libs in these paths:
>>    C:\D\LIB    C:\D\IMPORT
>> you need to tell it to, using -I on the command line
>> It's as simple as that.
> 
> Thanks but this is not my problem.

No, indeed it's not.  I understand what you're saying now :)

I'll reply some more in the other thread of this topic.

Regan
September 11, 2007
Johannes wrote:
> Sorry for not fixing this myself, but I really cannot get D started. I've tried uppercase/lowercase on everything, and it simply won't work. Here's a DOS printout to shop you what happens. It seems DMD simply won't traverse the subdirectories of Phobos.
> 
> C:\DMD\SRC>path
> PATH=C:\WINDOWS;C:\WINDOWS\SYSTEM32;C:\DMD\BIN;C:\CM\BIN
> 
> C:\DMD\SRC>dmd voxel.d -v
> parse     voxel
> semantic  voxel
> import    object        (c:\dmd\src\phobos\object.d)
> import    math  (math.d)
> voxel.d(11): module math cannot read file 'math.d'

Does voxel.d contain the import statement "import math;"?

If so, change that to "import std.math;", does that fix it?

If not, find out what file does i.e. maybe c:\dmd\src\phobos\object.d does (seems unlikely to me).

Regan
September 11, 2007
Thanks, that fixed my problem. I didn't realize D's method of converting dots to slashes. Wierd way actually, but ok it does the job.

Anyway, now I get alot of compile errors from Tinyptc.d and voxel.d. Both by Pavel Minayev. It seems the TinyPTC port is far from finished at this point, so I'm giving up, might take a shot at porting when I get up to speed on D.

Btw, is #digitalmars.D reachable through the standard USENET channels in any way? I've noticed Dejanews doesn't index any of the channels Web-News reads.
September 11, 2007
Johannes wrote:
> Thanks, that fixed my problem. I didn't realize D's method of
> converting dots to slashes. Wierd way actually, but ok it does the
> job.
> 
> Anyway, now I get alot of compile errors from Tinyptc.d and voxel.d.
> Both by Pavel Minayev. It seems the TinyPTC port is far from finished
> at this point, so I'm giving up, might take a shot at porting when I
> get up to speed on D.
> 
> Btw, is #digitalmars.D reachable through the standard USENET channels
> in any way? I've noticed Dejanews doesn't index any of the channels
> Web-News reads.

I believe people go direct to the news server at news.digitalmars.com. IIRC Walter has tried to get other news servers to index these groups without luck.

Regan
September 11, 2007
Johannes escribió:
> Thanks, that fixed my problem. I didn't realize D's method of converting dots
> to slashes. Wierd way actually, but ok it does the job.
> 
> Anyway, now I get alot of compile errors from Tinyptc.d and voxel.d. Both by
> Pavel Minayev. It seems the TinyPTC port is far from finished at this point,
> so I'm giving up, might take a shot at porting when I get up to speed on D.
> 

I'm not familiar with TinyPTC or Voxel, but Pavel hasn't been around for a long, long, long time, so most likely those modules are for old DMD versions.

> Btw, is #digitalmars.D reachable through the standard USENET channels in any
> way? I've noticed Dejanews doesn't index any of the channels Web-News reads.


-- 
Carlos Santander Bernal
September 11, 2007
Johannes Wrote:

> First, is there any way other than Web-News to search the D forum archives? Or any way of making an inclusive search with Web-News?
> 
> Anyway, I'm trying to compile some examples under D for Windows, under Windows XP SP2. I've placed the files in the proper places in C:\DM, C:\DMD and C:\D\LIB and C:\D\IMPORT. (I know DOS well) I've also set up the path to the C:\DM\BIN and C:\DMD\BIN dirs.
> 
> Somehow the D compiler can't find the Import modules no matter what, unless I copy them all to the same folder.
> 
> Does D work for Windows or is it an untested source release?
> 
> Is there any way of explicitly specifying the path of a module in the .D file?

I just downloaded dmd, Entice and dfl myself.
Try using dfl as compiler command instead of dmd, like this:
C:\dmd\bin\dfl myform.d -gui

Change it under Tools > Compile Command...
Works for me, but I don't really know why :)
September 12, 2007
I'll check it out, however, the problem was that the program I was trying to compile (TinyPTC for D) was written in 2002 when the directory tree of phobos was very different and the D language was also different, and also that the program was full of bugs.

Now I'm having problems trying to build Tango instead...
1 2
Next ›   Last »