For your own sanity, you might want to use something like Console2 to handle the MinGW shell (set the shell to C:\MinGW\msys\bin\bash.exe -login -i).Ensure that C:\MinGW is in your PATH and make sure you're using the GCC version downloaded above by checking the output of gcc.exe -version.Download msys+7za+wget+svn+git+mercurial+cvs-rev13.7z from the MinGW-Builds project, extract it to C:\MinGW, add C:\MinGW\ /mingw to C:\MinGW\msys\etc\fstab.
MINGW PATH INSTALL
Install MSYS and the usual tools like Git:.If this fails then you can find the files here. Download the installer and choose a gcc version, architecture i686, posix threads and dwarf exceptions. i686-4.9.1-release-posix-dwarf-rt_v3-rev1 is known to work. You can also use newer builds of MinGW-w64 for i686.Download and extract i686-w64-mingw32-gcc-dw2-4.8.0-win32_rubenvb.7z, renaming the top folder to C:\MinGW.A fresh build is required because support for the SECREå…ƒ2 relocation type needed to implement TLS was only recently added to GNU as, and TLS support in the MinGW runtime was broken: 32 bit) targets, with DWARF2-style exception handling ( -dw2). Get a recent build of MinGW-w64 for i686 (i.e.Newer releases or differing paths will probably work as well if you know what you are doing. The intention behind this is to record a known-good configuration. Note that the below instructions refer to precise package versions and file system paths.
![mingw path mingw path](https://www.electro-info.ovh/images/Installation_MinGW_Variables_Environnement_03.jpg)
Running the 32 bit compiler on a 64 bit Windows system is entirely possible, however. Due to the different exception handling models, it is not currently possible to use LDC to target 64 bit Windows/MinGW. The resulting compiler will create 32 bit executables.
![mingw path mingw path](https://multigesture.net/wp-content/uploads/2009/12/mingw2-300x232.jpg)
Note: These instructions were last verified to work on date 04 February 2014, using LDC commit 704ab30001582dc67084e6ea8967e61e8112d595. This page is a step-by-step guide to setting up a development environment for LDC based on MinGW.