How do I use libraries manually?
Atila Neves
atila.neves at gmail.com
Wed Feb 6 13:53:33 UTC 2019
On Tuesday, 5 February 2019 at 20:39:50 UTC, Murilo wrote:
> On Tuesday, 5 February 2019 at 19:46:32 UTC, H. S. Teoh wrote:
>
>
> Thank you very much, I will try what you just explained. And
> yes I would really appreciate it if people would make single
> file libraries that I can just import as if it were any other
> .d file.
That doesn't work in the aggregate.
Any non-trivial library will need to be split up into packages
and modules. There might be tasks to be performed before or after
the build. There might be different build configurations. There
might be external C library dependencies. The library might have
dependencies of its own, so the possible complications are
recursive.
Just use dub, it's easier. I don't think there's any good reason
to not use it.
More information about the Digitalmars-d-learn
mailing list