object.d: Error: module object is in file 'object.d' which cannot be read

Kenneth Dallmann fake at 123.con
Tue Sep 14 03:31:17 UTC 2021


On Sunday, 27 March 2011 at 10:28:00 UTC, Ishan Thilina wrote:
> When I give "dmd untitled.d" command in my ubuntu maverick 64 
> bit laptop I get the following error.
>
> "
> object.d: Error: module object is in file 'object.d' which 
> cannot be read
> import path[0] = /etc/../../src/phobos
> import path[1] = /etc/../../src/druntime/import
> "
>




I had the exact same problem, very frustrating.  I believe I 
solved the issue,
it was a simple error.

   When you are installing D, on Windows, it asks you to download 
MSVC, if it isn't
already present.

  Basically you are missing some form of dependency, which could 
be different based
on which compiler you are using.

   On my Windows machine I fixed the issue by downloading the 
Microsoft Visual IDE and then
from there I hit a button within that application to download the 
C compiler, MSVC.

After I did that I reinstalled D and it works now.

Thank you


More information about the Digitalmars-d-learn mailing list