Skip to content Skip to navigation
University of Warwick
  • Study
  • |
  • Research
  • |
  • Business
  • |
  • Alumni
  • |
  • News
  • Text only
  • |
  • Sign in
  • Search MOAC
  • Search University of Warwick
  • Search for people at Warwick
  • Search Warwick Blogs
  • Search past exam papers
  • Search video
  • More…

    Molecular Organisation and Assembly in Cells

    • About the DTC
    • Research
    • People
    • Degrees
    • Study at MOAC
    • News & Events
    • MOAC Students »
    • Peter Cock »
    • Cygwin »
    • 1 - Installing Cygwin
    • 2 - Installing GCC
    • 3 - Testing GCC
    • 4 - X Windows
    • 5 - Installing gnuplot
    • 6 - gnuplot and C++
    • 7 - Remote Computing
    University of Warwick

    Installing Cygwin on Windows XP

    This is what the first cohort of MOAC students (i.e. my year) used to allow them to do their C++ programming on their laptops (running just Windows XP). The second intake of MOAC students actually ended up dual booting their laptops between Windows XP and Suse Linux (with the GCC tools running in Linux). So this may not be of much interest to the newer MOAC students...

    Programs are written in a text based language (e.g. C++) which must be translated into a program (machine code) for the computer to run. This is done using a compiler.

    You can buy C++ compilers to use on Windows (e.g. Microsoft Visual C++). Also, the University Unix machines have the GNU Compiler Collection (GCC) tools installed (which are free).

    These instructions are for installing Cygwin (and subsidiary programs) on Windows XP. Cygwin is a Unix like environment that runs on top of windows, in particular it allows us to use the GNU Compiler Collection (GCC) to compile our programs.

    • Part One - Installing the basic Cygwin system
    • Part Two - Installing GCC (GNU Compiler Collection)
    • Part Three - Testing the GCC C++ compiler (G++)
    • Part Four - Installing the X Windows System (for graphical unix programs)
    • Part Five - Installing gnuplot (for drawing graphs and plotting data)
    • Part Six - Using gnuplot with a C++ Program
    • Part Seven - Remote Computing

    You may also want to look at the official Cygwin/X User's Guide, in particular the section Installing Cygwin/X.


    Summary of Paths

    Windows C: Drive
    Windows - C:\
    Cygwin - /cygdrive/c/

    Windows D: Drive
    Windows - D:\
    Cygwin - /cygdrive/d/

    Cygwin folder:
    Windows - C:\Cygwin\
    Cygwin - /

    Cygwin setup folder, where we put Setup.exe and the downloaded files are kept by the setup program:
    Windows - C:\Cygwin\Setup\
    Cygwin - /Setup/

    Cygwin Home folder for username. We made a shortcut to this on the desktop.
    Windows - C:\Cygwin\Home\username\
    Cywgin - /Home/username/ or ~ (tilde)

    Windows XP Home folder for username:
    Windows - C:\Documents and Settings\username\My Documents\
    Cygwin - /cygdrive/c/Documents and Settings/username/My Documents/

    [Cygwin Logo]
    Cygwin

    [GCC Logo]
    GNU Compiler Collection

    MOAC DTC, Coventry House, University of Warwick, Gibbet Hill Road, Coventry, CV4 7AL
    Tel. 024 765 75808 moac2 at warwick dot ac dot uk

    How to find us

    MOAC Intranet

    EPSRC logo

    Close this email form
    Page contact: Peter Cock Last revised: Wed 6 Dec 2006
    • Sign in
    • |
    • Powered by Sitebuilder
    • |
    • © MMXII
    • |
    • Privacy
    • |
    • Accessibility