www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - optlink error: filenames with spaces

reply Lionello Lunesu <lio lunesu.remove.com> writes:
C:\Users\llunesu\Desktop>type "t (2).d"
module t;
void main(){}

C:\Users\llunesu\Desktop>dmd "t (2).d"
c:\dmd\bin\..\..\dm\bin\link.exe t (2),,,user32+kernel32/noi;
OPTLINK (R) for Win32  Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

t.obj Offset 00000H Record Type 0064
  Error 138: Module or Dictionary corrupt
--- errorlevel 1
Nov 23 2006
parent Lionello Lunesu <lio lunesu.remove.com> writes:
Lionello Lunesu wrote:
 C:\Users\llunesu\Desktop>type "t (2).d"
 module t;
 void main(){}
 
 C:\Users\llunesu\Desktop>dmd "t (2).d"
 c:\dmd\bin\..\..\dm\bin\link.exe t (2),,,user32+kernel32/noi;
 OPTLINK (R) for Win32  Release 7.50B1
 Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved
 
 t.obj Offset 00000H Record Type 0064
  Error 138: Module or Dictionary corrupt
 --- errorlevel 1
Just noticed: optlink is using "t.obj" which was just some random file. It has nothing to do with the module statement, and it seems that DMD invokes optlink with "t" and "(2)" as separate arguments. L.
Nov 24 2006