www.digitalmars.com         C & C++   DMDScript  

D.gnu - Error: Error reading file 'object.d'

reply Charles Hixson <charleshixsn earthlink.net> writes:
I have just tried to install the Linux version of D on a (basically) 
Debian system.

It seems to be installed.  A plain dmd command yields the list of 
command line options.  But whenever I attempt to compile I get the 
error message "Error: Error reading file 'object.d'".

The version is (downloaded on 08/28/2003):
...$ dmd
Digital Mars D Compiler Beta v0.70
Copyright (c) 1999-2003 by Digital Mars written by Walter Bright
www.digitalmars.com/d/index.html
Usage:
   dmd files.d ... { -switch }


I've checked the /usr/local/D/dmd/src/phobos directory, and the file 
is there.
The /etc/dmd.conf file is:

[Environment]

DFLAGS=-I/usr/local/D/dmd/src/phobos

And, in addition, phobos.a is in:
/usr/lib/libphobos.a
/usr/local/D/dmd/lib/libphobos.a

Any suggestions as to what's wrong?
Any other information I should supply?
Aug 29 2003
parent reply Charles Hixson <charleshixsn earthlink.net> writes:
After reading the notes on the D list under the subject:
bug on linux: Error: Error reading file 'object.d'
(Starting on 08/27/2003)
and downloading and installing the inifile.c which Walter supplied I 
was able to get the compiler to work IFF I included the -I directory 
on the command line, e.g.:
dmd -I/usr/local/D/dmd/src/phobos sieve.d

Including it as a DFlags variable in the environment didn't suffice.
Aug 30 2003
parent Antti =?iso-8859-1?Q?Syk=E4ri?= <jsykari gamma.hut.fi> writes:
In article <birnir$22u6$1 digitaldaemon.com>, Charles Hixson wrote:
 After reading the notes on the D list under the subject:
 bug on linux: Error: Error reading file 'object.d'
 (Starting on 08/27/2003)
 and downloading and installing the inifile.c which Walter supplied I 
 was able to get the compiler to work IFF I included the -I directory 
 on the command line, e.g.:
 dmd -I/usr/local/D/dmd/src/phobos sieve.d
 
 Including it as a DFlags variable in the environment didn't suffice.
export DFLAGS=whatever actually does work, but only if /etc/dmd.conf does not include a DFLAGS line. So as a workaround, rm /etc/dmd.conf. This will likely be fixed in the next version. -Antti
Aug 31 2003