https://issues.dlang.org/show_bug.cgi?id=19821
Issue ID: 19821
Summary: Cannot pass linker argument with spaces
Product: D
Version: D2
Hardware: All
OS: Windows
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
With an empty D file, running the following command:
dmd main.d -L/LIBPATH:"C:\Program Files" -v -m64
Will output, among other things:
/LIBPATH:C:\Program Files
And fail with:
LINK : fatal error LNK1181: cannot open input file 'Files.obj'
The problem is that the path should be quoted because it contains spaces.
--