Thread overview
[Issue 2249] New: object.d: module object cannot read file 'object.d'
Jul 27, 2008
d-bugmail
[Issue 2249] DMD can't handle include paths with spaces in them
Aug 06, 2008
d-bugmail
Apr 23, 2009
d-bugmail
Apr 23, 2009
d-bugmail
May 08, 2009
d-bugmail
Aug 20, 2009
Valery
July 27, 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@digitalmars.com
        ReportedBy: dufresnep@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.


-- 

August 06, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2249


torhu@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|object.d: module object     |DMD can't handle include
                   |cannot read file 'object.d' |paths with spaces in them




------- Comment #1 from torhu@yahoo.com  2008-08-06 16:55 -------
Yup, dmd can't handle include paths with spaces in them, at least not when settings them in sc.ini.  It's annoying, but more or less documented here: http://www.digitalmars.com/d/1.0/dmd-windows.html#problems

It's likely that the linker (optlink) can't handle paths with spaces either, and that's not likely to be fixed anytime soon.  So avoiding spaces is the way to go.


-- 

April 23, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2249





------- Comment #2 from free_on@mail.ru  2009-04-23 09:39 -------
This problem will be fixed in future releases?


-- 

April 23, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2249





------- Comment #3 from clugdbug@yahoo.com.au  2009-04-23 10:17 -------
(In reply to comment #2)
> This problem will be fixed in future releases?

No. Optlink hasn't been changed in a decade, AFAIK; its bugs will probably never get fixed.


-- 

May 08, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2249


cristian@zerobugs.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cristian@zerobugs.org




------- Comment #4 from cristian@zerobugs.org  2009-05-08 00:52 -------
I think that the linker is a separate issue -- importing modules is strictly a front-end issue, and an annoying one, if one is foolish enough to install D in, say, c:\Program Files\Digital Mars\


-- 

August 20, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2249


Valery <free_on@mail.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |free_on@mail.ru
            Version|1.033                       |2.031




--- Comment #5 from Valery <free_on@mail.ru>  2009-08-20 04:03:24 PDT ---
Is this problem will be forever? This will impose restrictions on the IDE for D and installers. If the linker can be used other (not Optlink) that the compiler - no. Walter, please, fix it.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------