On Wednesday, 13 May 2020 at 15:26:48 UTC, BoQsc wrote:
lld-link: error: could not open libcmt.lib: no such file or
lld-link: error: could not open OLDNAMES.lib: no such file or
Error: linker exited with status 1
C:\D\dmd2\windows\bin\dmd.exe failed with exit code 1.
I just ran into this issue as well. I haven't had a chance to fix
it on my end, but this is what I've found.
Performing "debug" build using C:\D\dmd2\windows\bin\dmd.exe for
means that it is compiling a 64bit program on Windows.
On Windows, if you are trying to compile a 64bit program, then it
will try to link with lld if it cannot find a Microsoft linker
. The failure is likely due your Microsoft linker (or lld)
either not being installed properly or wrong version or
configured improperly. If you don't have Visual Studio Community
installed, that might be a first step. Another short-term fix
might be to try compiling with the -m32 dflag (need to put in