www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - dmd ignoring dmd.conf

reply Christopher Wright <dhasenan gmail.com> writes:
Hey everyone.

DMD seems to be ignoring /etc/dmd.conf for me. I'm trying to switch to 
Tango, and I realized that libtango.a wasn't being linked when compiling 
the standard hello world. So everything works when I add -L-ltango to 
the command to compile.

I modify my /etc/dmd.conf, which now reads:
[Environment]
DFLAGS=-L-ltango

Try compiling again without -L-ltango explicitly mentioned. Same failure 
as before.

When I was editing dmd.conf, I noticed that there were -I flags there 
that had not shown up before.

I have dmd installed in /usr/bin, tango in /usr/lib, and everything else 
in /usr/include/d. Does dmd assume this setup and only look at dmd.conf 
if that fails? What can I do to fix it?
Oct 09 2007
parent "Steven Schveighoffer" <schveiguy yahoo.com> writes:
"Christopher Wright" wrote
 Hey everyone.

 DMD seems to be ignoring /etc/dmd.conf for me. I'm trying to switch to 
 Tango, and I realized that libtango.a wasn't being linked when compiling 
 the standard hello world. So everything works when I add -L-ltango to the 
 command to compile
First, I'm assuming you are using linux. If you are not, then you are totally off base, you should be using sc.ini Second, /etc/ is not the first location that dmd looks for a configuration file. From the digital mars page http://www.digitalmars.com/d/dcompiler.html: dmd will look for the initialization file dmd.conf in the following sequence of directories: 1.. current working directory 2.. directory specified by the HOME environment variable 3.. directory dmd resides in 4.. /etc/ -Steve
Oct 10 2007