On Sunday, 27 November 2022 at 17:26:37 UTC, NonNull wrote:
I worked around this by setting a LIB environment variable containing the extra path I needed, so I didn't need the pragma. But this only worked for ldc2; dmd still complained it cannot find the necessary, ignoring the LIB environment variable. Is this a bug?

I set the LIB environment variable and now ```ldc2 main.d``` works. So I know LIB is set correctly.

But ```dmd main.d``` still has linking fail to find libraries at the location LIB.

I did both in a new console where ```echo %LIB%``` produced the expected path.

Any idea what may be going on with dmd?

Reply via email to