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

Reply via email to