[Issue 19760] Windows 10 -m64 completely broken, can't compile/run hello world

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 26 16:47:55 UTC 2019


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

--- Comment #10 from Jonathan Marler <johnnymarler at gmail.com> ---
> Feel free not to trust me, but I had a look at their license, as shipping with static libs would have made the lives of some people around here much easier.
> Or are you suggesting to port the DigitalMars C runtime to 64-bits? Note that the MinGW runtime is no alternative, it is itself based on the Microsoft DLLs (yep, the MSVC ones, not just the Windows ones).

I'm not sure what the right solution is yet.  It looks like different compilers
are using different approaches.  I think I've read that LIBCMT is a static
version of MSVCRT.dll, but I can't confirm, and even if it is, there may be
licensing issues like you point out.  Maybe we could use msvcrt.dll (the
unversioned one) for stuff that we're sure will never change and supplement it
with another static library to fill in the holes.  Maybe we chose another
implementation that we can ship a static library of (DMC/MUSL).  I'm not sure
what the right solution is here.


> A practical solution (well, the only really I can think of) would be checking the availability of those DLLs in the installer.

This only works if you are creating an executable that you are shipping with an
installer.

--


More information about the Digitalmars-d-bugs mailing list