View mode: basic / threaded / horizontal-split · Log in · Help
December 31, 2011
Cannot find object.d ?
I have 2 dmd.confs, which are in ~/Digital-Mars/dmd/src (the dmd
executable also located in here) and /etc/. Both are identical, and the
content is:
DFLAGS=-I~/Digital-Mars/druntime/import -I~/Digital-Mars/phobos

Every time I compile a D program (e.g dmd helloworld.d), I always get
this error:
object.d: Error: module object is in file 'object.d' which cannot be read
Specify path to file 'object.d' with -I switch

But when I use this script:
~/Digital-Mars/dmd/src/dmd -I~/Digital-Mars/druntime/import
-I~/Digital-Mars/phobos $1

The D program compiled fine.
I already take a look at
http://www.d-programming-language.org/dmd-linux.html. I guess my
dmd.conf should be correct, no?
January 01, 2012
Re: Cannot find object.d ?
Andre Tampubolon <andre@lc.vlsm.org> wrote:
> I have 2 dmd.confs, which are in ~/Digital-Mars/dmd/src (the dmd
> executable also located in here) and /etc/. Both are identical, and the
> content is:
> DFLAGS=-I~/Digital-Mars/druntime/import -I~/Digital-Mars/phobos
> 
> Every time I compile a D program (e.g dmd helloworld.d), I always get
> this error:
> object.d: Error: module object is in file 'object.d' which cannot be read
> Specify path to file 'object.d' with -I switch
> 
> But when I use this script:
> ~/Digital-Mars/dmd/src/dmd -I~/Digital-Mars/druntime/import
> -I~/Digital-Mars/phobos $1
> 
> The D program compiled fine.
> I already take a look at
> http://www.d-programming-language.org/dmd-linux.html. I guess my
> dmd.conf should be correct, no?

Ah nevermind. I forgot to put [Environment] in dmd.conf.
Top | Discussion index | About this forum | D home