Author Topic: object.d cannot be read (win)  (Read 2783 times)


  • Guest
object.d cannot be read (win)
« on: December 02, 2010, 08:33:50 am »

first of all: Sorry for my english.
second: i tried to find a topic that help me with this problem, but i could not.

I tried to configure the code::block to use the dmd compiler (d lenguaje). I use the config that i saw in this topic:,4537.0.html
from MortenMacFly:

1.) D/L and and extracted them in a directory (just as suggested on the DMD homepage at
--> This created two sub-folders "dm" and "dmd"
2.) Setup the DMD compiler in C::B:
- set the base path to [DMD]\dmd
- add additional path [DMD]\dm\bin
- setup the compiler include path to [DMD]\dmd\src\dmd and [DMD]\dmd\src\phobos
- setup the linker include path to [DMD]\dmd\lib and [DMD]\dm\lib
- left everything else as it is.
3.) Started the D application wizard, selected "DMD" as compiler --> compiles and runs just fine... no illegal switches, nothing. What is your problem???
With regards, Morten.

But when i try to compile the example (the one that C::B creates) i get this message:

-------------- Build: Debug in Compila ---------------

Compiling: hello.d
object.d: Error: module object is in file 'object.d' which cannot be read
import path[0] = C:\dmd\src\dmd
import path[1] = C:\dmd\src\phobos
import path[2] = C:\dmd\bin\..\..\src\phobos
import path[3] = C:\dmd\bin\..\..\src\druntime\import
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

I use:
- Windows vista
- C::B 10.05 (the one that comes with GCC compiler and GDB debugger from MinGW)
- dmd 2.050

I found some topics but all of them are for Linux.

please can anybody help me?


Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13438
    • Travis build status
Re: object.d cannot be read (win)
« Reply #1 on: December 02, 2010, 10:00:37 am »
Your installation of the D Compiler seems broken, please use your favorite search engine to find solutions to you problem.
This is not a C::B issue (probably).

See what I've found:
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]