Static library building
Adam D. Ruppe
destructionator at gmail.com
Mon Mar 19 14:31:05 UTC 2018
On Monday, 19 March 2018 at 14:07:52 UTC, Vindex wrote:
> dmd main.d -L-L. -L-l:mod.a
It still needs to know where to find the import file to get D
information like names and types out of it that aren't in the lib
(well they sorta are but not exactly, in any case it isn't
implemented to try it now).
So either still pass it mod.d there, which makes the library
useless, or pass `-Isomething` where there's a `pack/mod.d` or
`pack/mod.di` file with the function prototypes. dmd -H can make
mod.di out of mod.d for you in some cases automatically.
More information about the Digitalmars-d-learn
mailing list