dmd.conf no longer working?

Marco Leise via Digitalmars-d digitalmars-d at puremagic.com
Thu Oct 22 14:05:24 PDT 2015


Am Thu, 22 Oct 2015 21:50:33 +0200
schrieb Jacob Carlborg <doob at me.com>:

> On 2015-10-22 19:43, Andrei Alexandrescu wrote:
> > Hi folks, I'm having trouble setting up dmd on a fresh system. The short
> > of it is nothing in dmd.conf seems to be taken into account.
> > Furthermore, sections such as [Environment] are rejected with the error
> > message:
> >
> > Error: Use 'NAME=value' syntax, not '[ENVIRONMENT]'
> >
> > What happened?
> 
> A couple of things:
> 
> * I recommend compiling with -v, it will output the path to dmd.conf
> 
> * It should be Environment32 and/or Environment64 for Linux. For OS X 
> it's Environment. It should _not_ be ENVIRONMENT
> 
> * You might want to tell us on which platform and how you installed the 
> compiler

You can also combine common options under [Environment] like
this:

[Environment]
DFLAGS=-I/opt/dmd-2.069/import -L--export-dynamic -defaultlib=phobos2 -verrors=0
[Environment32]
DFLAGS=%DFLAGS% -L-L/opt/dmd-2.069/lib32 -L-rpath -L/opt/dmd-2.069/lib32
[Environment64]
DFLAGS=%DFLAGS% -L-L/opt/dmd-2.069/lib64 -L-rpath -L/opt/dmd-2.069/lib64

-- 
Marco



More information about the Digitalmars-d mailing list