
The Java Runtime Environment (JRE) allows you to run Java programs that someone else has compiled. Give the commands g++ -versionĮach should result in a message indicating that the program started successfully.Įclipse itself runs in Java, so you need to have a reasonably up-to-date version of Java on your PC. I recommend always getting thee highest-numbered version that is not marked as “Test”.Ĭheck your installation to make sure it works. If everything looks good, re-run the CygWin setup program and add the following: g++, gdb, gcc-debuginfo, and make.

This can cause some confusion when Windows programs (e.g., Eclipse) need to talk to Cygwin programs (e.g., g++ or gdb).The Windows directory C:\Users\yourName\projects would be, in Cygwin, /cygdrive/c/Users/yourName/projects. For example, if you are working in a project directory with source code contained in a cpp directory within an outer src directory, in Windows you would access this source code as src\cpp\, but in Cygwin this would be src/cpp.Ībsolute paths are trickier. You can do most of your work in Windows, but still have the option of stepping into a CygWin bash window for command-line operations.This document will walk you through setting up a Windows/Cygwin programming environment using: * the Eclipse IDE running natively on Windows, * Java running natively on Windows, and * g++, make and gdb in CygWin. From a practical point of view, Cygwin allows a Windows PC to run the bash shell with most of the common Unix commands, as well as Technically, CygWin provides a “POSIX” layer (POSIX being a standard for providing compatability between operating systems).

Since the mid 1990’s, Cygwin has provided a powerful environment for porting Unix programs into the Windows world.
