This is a guide to installing g++ in Cygwin. It assumes that you have alread successfully installed Cygwin in MS Windows
You should review Updating Cygwin before you ssh in Cygwin.
The compiler g++ is part of the gcc compiler suite. The gcc package is in the category Devel in a package called gcc. There are two versions available, 2.95 and 3.2. Click in the New column until you see the version starting with 3.2.
Start up a Cygwin bash shell. A bash shell is the shell that many Linux systems use. You can do this by selecting from the Cygwin icon or from the Start menu.
In the bash shell type the command:
g++ --version
It should tell you the version number of g++.
If you have ssh installed you can copy a "Hello World!" program by entering the following:
scp username@loki.cs.kent.edu:~collard/public_html/hello.cpp hello.cpp
You will be prompted for your password on loki. Enter it and the file should be copied You can enter an ls command to see if it is there:
ls
Now you can try compiling it:
g++ hello.cpp -o hello
You can execute the program with:
./hello