Failed 'dub run' with 'Failed to invoke the compiler dmd'

Timoses via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Oct 31 03:08:51 PDT 2015


On Saturday, 31 October 2015 at 06:13:27 UTC, Mike Parker wrote:
> DMD uses different linkers depending on the platform. For the 
> compiler, -L means 'pass this command to the linker.' In this 
> case, that just also happens to be -L, which is understood by 
> ld (the system linker) as the flag to set the library path. If 
> you were using the Microsoft linker on Windows, it would be 
> -L/LIBPATH:dir. If you were manually linking with libevent on 
> Mac or Linux, you would pass -L-levent, and so on.

Cool! Thanks a lot!


More information about the Digitalmars-d-learn mailing list