Adding linker paths with spaces using dmd and msvc toolchain
Jerry via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Dec 30 15:06:52 PST 2016
On Friday, 30 December 2016 at 05:24:56 UTC, 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.
>> So it smashes everything into a new string, ignoring how the
>> string was passed into DMD. I think you can use triple quotes,
>> """string with space""", and it should make the string passed
>> to DMD include the string. Might be different for powershell.
>
> You mean I could do -L/LIBPATH:"""path"""?
My mistake that's for powershell, I'm not sure what the cmd.exe
way is.
More information about the Digitalmars-d-learn
mailing list