DUB: How to link an external library on Windows 10?

Mike Parker aldacron at gmail.com
Fri Aug 27 14:52:15 UTC 2021


On Friday, 27 August 2021 at 14:46:56 UTC, Ki Rill wrote:
> On Friday, 27 August 2021 at 13:54:18 UTC, Steven Schveighoffer 
> wrote:
>> [...]
>
> How do I tell DUB where to look for `raylibdll.lib` and 
> `raylib.dll`? Via `lflags` section? What if I put them in a 
> different folder instead of the project's directory?

Yes. The path goes in the lflags directive using whatever the 
linker-specific flag is. I assume for lld it's `-Lpath`. For MS 
link it's `/LIBPATH:path`.


More information about the Digitalmars-d-learn mailing list