CSCI 1200 Data Structures
Spring 2015

  Contact Information
  Discussion Forum (LMS)

  Learning Outcomes
  iClickers in Lecture
  Course Grades

  Lecture notes
  Lab materials
  Test reviews

Weekly Schedule
  Office Hours
  Lab Times

Getting Help
  Advice from TAs
  Advice from Students

  Due Date and Time
  Late Day Policy
  Electronic Submission
  HW Grading Criteria

Collaboration Policy &
Academic Integrity

  Optional Textbooks
  Web Resources
  C++ Development
    Code Editors & IDEs
  Misc. C++ Programming
    Command Line Args
    File I/O
    string → int/float
  Memory Debugging
    Dr. Memory

How to Install MinGW / Minimalist GNU for Windows

  1. Download the installer

  2. 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

  3. 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

  4. Using G++

    • Open your command prompt:
      • On any Windows Computer, pressing Windows+R opens the run Window
      • Type "cmd.exe"
      • Press Enter
    • Navigate to the directory of your program's source files using cd
      • Note that the Windows CMD uses \ (backwards slashes) to separate Folders, not /
      • Google or your mentors are your friends if you're confused about changing directories
    • Use dir to show the files in your current location
    • When you're in your project folder, execute g++ as you would normally
      • I.E. "g++ main.cpp -o main.exe -Wall"
      • Your executable will be outputted in the same directory
    • To execute your program, type ".\"
      For the previous example, program name is "main.exe"

  5. Using GDB

    • GDB for MinGW functions the same as it's 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