Adding linker paths with spaces using dmd and msvc toolchain
Rainer Schuetze via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Dec 30 13:51:32 PST 2016
On 30.12.2016 19:24, Jeremy DeHaan wrote:
> On Friday, 30 December 2016 at 04:56:59 UTC, Jerry wrote:
>> On Friday, 30 December 2016 at 03:51:13 UTC, Jeremy DeHaan wrote:
>>> How does one correctly add a linker path that has spaces?
>>
>> The quotes get consumed by the command line. The way DMD spawns the
>> linker by creating a new string with all the flags.
>
>
> Does this happen on other platforms too? There has to be a GOOD way to
> pass a linker path that has spaces. Should this be considered as a bug?
>
>
Not sure if it qualifies as "GOOD", but this works:
dmd -m64 "-L/LIBPATH:\"path with spaces\"" main.d
More information about the Digitalmars-d-learn
mailing list