[Issue 2249] New: object.d: module object cannot read file 'object.d'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jul 26 18:09:41 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2249

           Summary: object.d: module object cannot read file 'object.d'
           Product: D
           Version: 1.033
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: dufresnep at gmail.com


Symptom: When 'dmd somefile.d' get:
object.d: module object cannot read file 'object.d'

Probable reason: probably does not handle spaces in path in -I for DFLAGS in
sc.ini coming from %@P% which I believe to be the path of DMD.
I tried to write full path to -IC:\... in sc.ini, but that did not helped.

I use an openshell.bat file:
==========
@echo off
PATH=%CD%\bin;%PATH%
PROMPT=%USERNAME%@%COMPUTERNAME%:$P$G$S
COLOR 0F
ECHO Shell setup for Digital Mars D Compiling and Debugging
ECHO change which drive you're on: [Drive Letter]:\
ECHO eg. C:\ to change to C drive
%HOMEDRIVE%
CD %HOMEPATH%
CMD
============

Does not work on my Desktop (probably because of "Documents and Settings").
So I tried do decompress to "C:\OKTANGO" the whole thing. Was working fine
there.
Then renamed to "C:\BAD TANGO" and rerun openshell.bat and recompile hello.d,
with the "object.d: module object cannot read file 'object.d'" message.

I am using tangobos-0.99.7-bin-win32-dmd.1.033.


-- 



More information about the Digitalmars-d-bugs mailing list