Cygwin and MinGW

About

  • Cygwin is a Unix-like environment and command-line interface for Microsoft Windows.
  • MinGW, formerly mingw32, is a free and open source software development environment for creating Microsoft Windows applications. DigiPen is using a distro by nuwen.

Licenses

  • Cygwin is GNU LGPLv3
  • MinGW is Public domain (headers), GNU General Public License (compiler and toolchain)

Distribution in labs

  • All PCs in DigiPen campus have both Cygwin and MinGW

Common FAQ

  • Where can I find the version of Cygwin and MinGW installed in DigiPen labs ?

    • We have zipped up the binaries and placed them in S:\CygwinDownload_forStudents
    • The instructions are placed there as well.
  • How do I integrate Visual Studio's compiler (cl.exe), with Cygwin environment ?

    • It depends on your Visual Studio installation and it's location. Refer to table below
Version EnvironmentVariable Location
Visual Studio 2015 %VS140COMNTOOLS% C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\vsvars32.bat
Visual Studio 2017 No variables 2017 onwards C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\vsdevcmd.bat

Example batch file

@echo off

C:
chdir C:\cygwin64\bin
REM Try to detect if batch file exists in VS2017 default install location
IF EXIST "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\vsdevcmd.bat" (
	CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\vsdevcmd.bat"
) else (
	echo "No vs2017 detected. Unable to load vs environment."
)
cls
c:\cygwin64\bin\bash --login -i