Import static library by DUB (linking)

Mike Parker aldacron at gmail.com
Sun May 2 04:42:42 UTC 2021


On Saturday, 1 May 2021 at 18:30:26 UTC, Wusiki wrote:
> Lib:
>
> ```
> module testlib;
> static string abc = "Hello World!";
> ```

FYI, `static` has no meaning at module scope.

> ```
>
> (Can't find -ltestlib)
>
> What am I do wrong? How can I link my library with my app?

Did you compile `testlib.d` into a library? I only ask because 
you didn't show a command line for it.


More information about the Digitalmars-d-learn mailing list