[Issue 16677] New: -L flag ignores quotes in the arguments passed to the linker

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Nov 9 03:12:08 PST 2016


https://issues.dlang.org/show_bug.cgi?id=16677

          Issue ID: 16677
           Summary: -L flag ignores quotes in the arguments passed to the
                    linker
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: atila.neves at gmail.com

On Windows 32-bit, linking with dmd and passing, say, `-L/LIBPATH:"C:/Program
Files (x86)/foo/bar"`, dmd calls `link.exe` without the quotes which results in
linker error trying to link `C:/Program.obj` because of the space. Since
`C:/Program Files (x86)/` is where a lot of system libraries live, the user
doesn't really have a choice but to call `link.exe` manually, which isn't easy
to set up with dub.

--


More information about the Digitalmars-d-bugs mailing list