Relative lflag paths in dub on Windows

jmh530 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jun 28 12:43:02 PDT 2017


On Wednesday, 28 June 2017 at 00:22:56 UTC, Mike Parker wrote:
> 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

I appreciate you posting this. I had found the /LIBPATH, but dub 
randomly crapped out on me before I was about to test it, so I'm 
going to start another thread just on that...


More information about the Digitalmars-d-learn mailing list