[Issue 17384] LDC x64 linker error in VS2017

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon May 8 23:45:19 PDT 2017


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

Rainer Schuetze <r.sagitario at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario at gmx.de

--- Comment #2 from Rainer Schuetze <r.sagitario at gmx.de> ---
kinke's right, the DLL is missing for the cross compilation x86 <-> x64. Visual
D uses the x86 folders in case you are working on a 32-bit host OS.

There are two workarounds:
1. if you are on 64-bit OS, you can just replace the LDC x64 executable search
path
     $(VCTOOLSINSTALLDIR)bin\HostX86\x64
   with
     $(VCTOOLSINSTALLDIR)bin\HostX64\x64

2. add another folder to the LDC x64 executable search path:
   $(VSINSTALLDIR)Common7\IDE

Visual D doesn't use LDC's automatic detection because it doesn't allow using
different versions of VS.

--


More information about the Digitalmars-d-bugs mailing list