www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16946] New: rdmd causes linker issues when DMD options are


          Issue ID: 16946
           Summary: rdmd causes linker issues when DMD options are changed
                    between runs
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: tools
          Assignee: nobody puremagic.com
          Reporter: andrej.mitrovich gmail.com

Using: v2.072.1

module test;
void main() { }

# first time is ok
$ rdmd test.d

# second run added -of switch
$ rdmd -oftest2.exe test.d
 OPTLINK (R) for Win32  Release 8.00.17
 Copyright (C) Digital Mars 1989-2013  All rights reserved.
  Error 2: File Not Found C:\Users\andre\AppData\Local\Temp\.rdmd\rdmd-test.d->
 Error: linker exited with status 18221464
Workaround is to use --force to rebuild. I'm not entirely too sure but I think this may be a regression. --
Dec 03 2016