www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Impressed

reply Steve Teale <steve.teale britseyeview.com> writes:
Set up a Linux box this week - it's been a while, and loaded DMD.  Previously I
had written a test program that implemented AJP13/14, and got it working via
Apache2 on Windows.

Once I'd figured out how to configure mod_jk, and got Apache running again it
took me about 10 minutes to make the small changes needed to make my source
compile for Linux, and then it just worked - magic!

The only thing I was somewhat puzzled about was that I had to use -I to tell
the compiler explicitly where to look for Phobos sources.  Can I do this with
an environment variable or something?
Aug 11 2007
next sibling parent reply Frank Benoit <keinfarbton googlemail.com> writes:
Steve Teale schrieb:

 The only thing I was somewhat puzzled about was that I had to use -I
 to tell the compiler explicitly where to look for Phobos sources.
 Can I do this with an environment variable or something?
 

you can supply this option in /etc/dmd.conf, according to 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/
Aug 11 2007
parent Steve Teale <steve.teale britseyeview.com> writes:
Frank Benoit Wrote:

 Steve Teale schrieb:
 
 The only thing I was somewhat puzzled about was that I had to use -I
 to tell the compiler explicitly where to look for Phobos sources.
 Can I do this with an environment variable or something?
 

you can supply this option in /etc/dmd.conf, according to 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/

Aug 12 2007
prev sibling parent BCS <ao pathlink.com> writes:
Reply to Steve,

 Set up a Linux box this week - it's been a while, and loaded DMD.
 Previously I had written a test program that implemented AJP13/14, and
 got it working via Apache2 on Windows.
 
 Once I'd figured out how to configure mod_jk, and got Apache running
 again it took me about 10 minutes to make the small changes needed to
 make my source compile for Linux, and then it just worked - magic!
 
 The only thing I was somewhat puzzled about was that I had to use -I
 to tell the compiler explicitly where to look for Phobos sources.  Can
 I do this with an environment variable or something?
 

If you put phobos in /usr/include/ things just work. take a look at this for where to put most things http://www.dsource.org/projects/scrapple/browser/trunk/scripts/dmd_update
Aug 11 2007