Bug 7800 – Paths with square brackets cause link failure

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
tools
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2012-03-30T08:17:00Z
Last change time
2015-06-09T04:37:41Z
Keywords
link-failure
Assigned to
nobody
Creator
ascend4nt

Comments

Comment #0 by ascend4nt — 2012-03-30T08:17:42Z
A path containing square brackets causes the following error message: OPTLINK : Error 8: Illegal Filename This happens if either the linker itself is located under a bracketed path, or the object file. For example, both of these scenarios cause failure: D Compiler path: C:\[Programming]\dmd2 Source path: C:\[MySrc]\HelloWorld.obj C:\[MySrc]\HelloWorld.d
Comment #1 by ascend4nt — 2012-03-30T09:23:58Z
I've also found this is a problem with the C++ linker, I'm assuming both are based on the same codeset. Additionally, folders with '+' in them cause issue, and probably any number of other symbols (more testing would be needed)
Comment #2 by andrej.mitrovich — 2013-02-09T20:13:35Z
*** This issue has been marked as a duplicate of issue 4831 ***