D packages, include directories, and rdmd
Jesse Phillips
jessekphillips+D at gmail.com
Thu Oct 27 16:17:52 PDT 2011
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
More information about the Digitalmars-d
mailing list