Relative lflag paths in dub on Windows

Mike Parker via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jun 27 17:22:56 PDT 2017


On Wednesday, 28 June 2017 at 00:16:23 UTC, Mike Parker wrote:
> On Tuesday, 27 June 2017 at 19:07:49 UTC,
>
> You have to specify the appropriate linker option, e.g. 
> -L-option. For gcc, that happens to -L, so you get -L-L. For 
> optlink it's +something and for the MS linker it's /something. 
> I'm on my phone else I'd look it up.

Optlink instructions at [1]: -L+path\
MS linker [2]: -L/LIBPATH:path

[1] 
https://wiki.dlang.org/Compiling_and_linking_with_DMD_on_Windows

[2] 
https://docs.microsoft.com/en-us/cpp/build/reference/libpath-additional-libpath


More information about the Digitalmars-d-learn mailing list