digitalmars.D.learn - dmd ignoring dmd.conf
- Christopher Wright (15/15) Oct 09 2007 Hey everyone.
- Steven Schveighoffer (13/18) Oct 10 2007 First, I'm assuming you are using linux. If you are not, then you are
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
"Christopher Wright" wroteHey 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 compileFirst, 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