
#14537: Do not link to msvcrt.dll -------------------------------------+------------------------------------- Reporter: johndoe | Owner: (none) Type: feature request | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.2.1 (Linking) | Resolution: invalid | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by johndoe):
The first off, the numbered versions are a component of the newer Visual Studio C++ Runtimes. Hence the versions. Each release is tied directly to a visual studio release. We do not have the rights to redistribute these files
Well, I think you do. Not only vc-redist installers, but even separate files, if you need. According to https://msdn.microsoft.com/en-us/library/ms235299.aspx: It's also possible to directly install redistributable Visual C++ DLLs in the application local folder, which is the folder that contains your executable application file.
See https://msdn.microsoft.com/en-us/library/abx4dbyh.aspx You always need a C runtime.
But MSVCRT.DLL is not C runtime: https://blogs.msdn.microsoft.com/oldnewthing/20140411-00/?p=1273 So linking to it is against MS guidance. But ok, I am not going to make holy war from it. My problem is that in my system MSVCRT.DLL just does not contain required exports (but 'numbered' msvcr90.dll does) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14537#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler