Home
Contact Information
Announcements
Discussion Forum (LMS)
Syllabus
Learning Outcomes
Prerequistites
iClickers in Lecture
Course Grades
Calendar
Lecture notes
Lab materials
Homework
Test reviews
Weekly Schedule
Office Hours
Lab Times
Getting Help
Tutoring
Advice from TAs
Advice from Students
Homework
Due Date and Time
Late Day Policy
Compilers
Homework Submission
HW Grading Criteria
Collaboration Policy &
Academic Integrity
C++ Development
Code Editors & IDEs
OS Choices
Installing Cygwin
Memory Debugging
Valgrind
Dr. Memory
References
Optional Textbooks
Web Resources
Misc. C++ Programming
Command Line Args
File I/O
string → int/float
|
How to Install MinGW / Minimalist GNU for Windows
Download the installer
https://sourceforge.net/projects/mingw/files/latest/download
Execute the Installer
- If you want the .bat script to work later on, you need to use the Default Location.
- Make sure to select "Graphical (GUI) Installation" before continuing!
- Select the following packages:
- mingw32-base (C compiler + debugger)
- mingw32-gcc-g++ (C++ compiler + debugger)
- Goto Installation > Apply Changes
- Wait until the installation finishes
- Close the MingW Installation Manager afterwards
Finishing Install
Execute the provided .bat file
- This adds the location of your compiler to your machine's PATH variable
- Having the location of the compiler in the PATH variable is required to access the compiler in CMD
Using G++
Using GDB
- GDB for MinGW functions the same as its Linux and Cygwin counterparts
- Refer to Step 3 to access the command prompt and change the directory
- Refer to Debugging Lab for a "How To" on using GDB
|