Now to execute the programs you need to open the bIn directry. There you should find both G++ and Gcc compiler. To confirm that everything is done correctly just go to c:\MinGW\bin When it is done and it displays " all changes were applied successfully. The installation will start and it will take some time. Click on apply changes and click on apply.For our purpose check the " mingw32-gcc-g++" package and click on installation in the upper left corner. " MinGW Installation Manager" will open.You can see the percentage there in the right hand box. So be patient and wait for it to complete. Download will start within the installer.leave it as it is and just click on continue. Don't change the installation directory.Open the installer and click on Install.The downloaded file name will be " mingw-get-setup.exe"
I’m looking forward to further experiments with MinGW. I have found that I can copy the entire MinGW environment between machines by simply copying c:\MinGW and adding the path. To get it to work you need two //: scp myfile myhost://tmp I don’t fully understand what is going on, but myhost:/tmp is not being translated correctly. Will fail with ssh: Could not resolve hostname myhost c: No such host is known. Using scp (or pscp) requires a slightly screwy path as well. I have an extensive login script that I always want run. For example, if I want to run c:\tmp\test.sh, use: bash -l -c /c/tmp/test.sh To run a script with bash, you run bash and specify the path as you would inside bash. You can start bash from inside cmd like this: bash -l
INSTALLING MINGW INSTALL
These can be installed directly using mingw-get: mingw-get install msys-vim There are some other packages that I know I would want. When done, commands such as ls can be run from cmd. Next, in C:\MinGW\msys\1.0, copy a link of msys.bat to Start Menu, named bash, so bash can be run from the start menu.Īt this point, you can double click on the msys.bat (bash) link and bash will start.įinally, add c:\mingw\msys\1.0\bin to your path. ItĬ:/ is important because it allows bash access to the entire hard drive, otherwise you will only have access to the c:\mingw\msys\1.0 directory. I selected mingw32-base (gcc), and msys-base (bash + utilities):īefore attempting to run anything, edit the file C:\MinGW\msys\1.0\etc\fstab. Once the installer is setup, it asks which parts of MinGW you want to install.
Once started, I selected the default options (installing into c:\MinGW). From there you select which parts of MinGW you want to install. You download an installer which works much like the Linux Synaptic Manager.
INSTALLING MINGW PLUS
The plus side to MinGW is it will replace my old unxutils and provide the same features plus provide bash on top of Windows.Ĭonsidering the general complexity of what is being installed, the installation is amazingly simple. gnuCOBOL for Windows is compiled on MinGW and the preprocessor seems to have no preference, so I will install MinGW and see how it goes. I’m looking for simple, small, and clean.
INSTALLING MINGW FULL
I have multiple issues with this – it requires Windows 10 64bit, is a full blown Linux install, and it is Microsoft. One option is the new Windows Subsystem for Linux (WSL). BUT unxutils just provides some basic utilities, it doesn’t provide the ability to compile and run C programs on Windows.
Cue minGW.įor what seems like 20 years, I’ve been using unxutils to provide Unix based commands in Windows which allows me to move between Windows and Linux seamlessly. That means getting gcc running under Windows. But for no particularly good reason, I want to do this project on Windows. One option is to take a step backwards and redo what I’ve done so far on Linux. If I’m going to move forward, I’m going to have to be able to compile the preprocessor.
INSTALLING MINGW HOW TO
As I started researching how to install the gnuCOBOL SQL preprocessor, I found that there are no binaries (Windows or Linux).