www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Cannot find object.d ?

reply Andre Tampubolon <andre lc.vlsm.org> writes:
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?
Dec 31 2011
parent Andre Tampubolon <andre lc.vlsm.org> writes:
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.
Dec 31 2011