Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Installing MinGW is not a straightforward process, but it is easily managed by following the steps outlined below.

...

  •  Click the green Download button to start the download.
    Image Modified

  •  

    Run the installer once it has finished downloading.

    Info

    The executable you have downloaded is NOT the MinGW program itself, but rather an installation manager called mingw-get that organizes the packages you wish to install.


  •  Install the mingw-get tool with the default settings.
    Image Modified

  •  Allow the installation manager to finish running, then click Continue.
    Image Modified

  •  Left-click the checkboxes next to the packages you wish to include in your MinGW installation and choose Mark for installation from the resultant drop-down menu.

...

  •  Mark at least the mingw32-base,msys-base, and mingw32-gcc-g++ (C/C++) repositories for installation; mark the ada, fortran, and/or objective-c repositories as well, if you intend to use those libraries.
    Image Modified

  •  Open the Installation menu from the upper-left corner of the window and choose Apply changes.
  •  Click the Apply button on the next screen to begin downloading and installing all of the necessary packages for MinGW to run.

To open the MinGW shell, browse to C:\MinGW\msys\1.0\ and run the file called msys.bat

Info

You may wish to create a shortcut to this file in order to avoid having to browse to

...

the file location in the future.


Info

You may leave the mingw-get tool on your PC to facilitate package updates in the future, or you may remove it without impacting MinGW's functionality.


Info

If you install OrCAD Lite on the same computer after you install MinGW, you may need to change the default path in MinGW's profile file. You can do this regardless of whether OrCAD Lite is installed to permanently set your default home directory as well.

Open the file C:\MinGW\msys\1.0\etc\profile using any text editor. The very last line should read cd "$HOME" by default. Change the text inside the quotation marks to a folder of your choosing, using Linux-recognized forward slashes (/)in the path name, rather than Windows-recognized backslashes (\). For example, you might define the default path as "C:/Users/jsmith/Desktop/ECE251" if you have a folder on your Desktop for that course.


Info

Some users have experienced an issue in which an overzealous antivirus program deletes their compiled code. For example, you might compile helloworld.c using MinGW, and see that the resulting a.exe file gets instantaneously deleted by the antivirus, which mistakenly identifies it is a harmful file. If this happens, you can either try to create an entry in your antivirus's exemption list or uninstall the antivirus and replace it with any number of free alternatives.


Tip
titleStill need help?

For additional assistance, contact the Director of Engineering Information Systems at the College of Engineering.(219) 464-5122 or via e-mail at erik.kispert@valpo.edu.

Content by Label
showLabelsfalse
max5
spacesITKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("objective-c","c++","compiler","program","c","gnu","objective-c++","programming","software","fortran","library","cli","coding","code","ada","engineering","personal") and type = "page" and space = "ITKB"
labelsengineering software personal coding compiler c c++ gnu code program programming ada cli objective-c objective-c++ fortran library

...