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"""?

There is also the dark and dirty way of using the short DOS path, which is still maintained on Windows file system partitions.

How to get DOS path: http://stackoverflow.com/questions/4051088/how-to-get-dos-path-instead-of-windows-path

I can't recommend it as a long-term solution, but it sure can help when one needs things working here and now.

Ivan Kazmenko.

Reply via email to