D packages, include directories, and rdmd

Andrew Pennebaker andrew.pennebaker at gmail.com
Thu Oct 27 19:09:42 PDT 2011


Nick, thanks for the info. I'm upgrading my Homebrew D installation now.
What's the point of -Ipath for dmd if you still have to specify the actual
files in the path?

I'm not sure if this is the right mailing list, but I'd really like to see
rdmd using the $DFLAGS environment variable like dmd does. For now, I'll use
your handy shebang tip.

Can future versions of rdmd turn on --shebang by default? I can't think of a
reason to give coders the ability to not support shebang options.

Jesse, aye, DFLAGS in dmd.conf appears to override the default rather than
append to the default. And that's just silly.

Cheers,

Andrew Pennebaker
www.yellosoft.us

On Thu, Oct 27, 2011 at 7:17 PM, Jesse Phillips
<jessekphillips+D at gmail.com>wrote:

> Andrew Pennebaker Wrote:
>
> > I've got a single-file D module,
> > dashcheck.d<https://github.com/mcandre/dashcheck>,
> > that I'd like to install as a local package. In other words, I'd like to
> be
> > able to "import dashcheck;" from any directory.
> >
> > I put dashcheck.d in ~/.d/, and I put export DFLAGS=-I~/.d in ~/.profile,
> > but when I try to run example.d from another directory, I get:
>
> Just a theory but I suspect that DFLAGS in dmd.conf just override the
> environment you specify. You should be able to specify -I yourself but ~ may
> not be resolved.
>
> Also you must have a library and specify the library path -L-L or place it
> in a known location like /usr/local/lib
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20111027/e2c0ab27/attachment.html>


More information about the Digitalmars-d mailing list