Installing Cygwin

Last modified: 2012.1. by Patrick Kelley


About Cygwin

Cygwin is a Unix/Linux-like environment for Windows that lets you use a variety of Linux programs (such as g++) on your PC.


Installing Cygwin

  1. Go to http://www.cygwin.com and download "setup.exe" (under Install/Update Now!).
  2. Run setup.exe.

  3. Once Cygwin is installed, double-click its icon on the desktop to open a Cygwin terminal. Here you can type commands along the lines of the following:
          pwd
          cd c:/somefolder/otherfolder
          ls
          cd ..
          cp existingfilename newduplicatefilename
          mv oldfilename newfilename
          mv filename foldername
          g++ -o prog.exe prog.cpp
          ./prog
          exit
    

    Since Cygwin can access Windows folders as normal, you can use your favorite text editor to type in your C++ source code.


See Also