Import static library by DUB (linking)

Wusiki wusikijeronii at gmail.com
Sun May 2 06:45:46 UTC 2021


On Sunday, 2 May 2021 at 04:42:42 UTC, Mike Parker wrote:
> On Saturday, 1 May 2021 at 18:30:26 UTC, Wusiki wrote:
>
> FYI, `static` has no meaning at module scope.

Ok, I replaced abc to abc() string function;
>
> Did you compile `testlib.d` into a library? I only ask because 
> you didn't show a command line for it.

Yes.
My tree:
- Root
     - libs
       - testlib.a
     - source
       - app.d
     - dub.json

testlib.a was build also with DUB where targetType was "library";


More information about the Digitalmars-d-learn mailing list