

You’ll then be able to run the compiled program by entering hello in the DOS command prompt window. For example, to compile a file called C:\mine\hello.cpp, connect to the C:\mine folder and enter g++ -g hello.cpp -o hello -lm You should now be able to run g++ from a DOS command prompt window. Don’t use them! You will use it using the g++ command on a DOS command prompt as explained below. Restart your computer. A Cygnus Solutions entry will appear in your Programs menu, and an icon may appear on your desktop.You are just appending more to the end separated by a semicolon. Make sure that you do not lose the original value. You add it to the end of the existing value separated by a semicolon (‘ ’). You do that by following: Start -> Control Panel -> System -> Advanced -> Environment Variables At this point you can see the PATH variable either in the User Variables or in the System Variables. On my Windows machine, it was created in the following path:C:\cygnus\cygwin-b20\H-i586-cygwin32\bin You now should add it to the PATH environment variable. Locate where the bin folder was created for the g++ installation.Or, open a DOS command prompt window (Start > Programs > Command Prompt), connect to the C: drive using the cd command, and type full. Go to the C: drive using Windows Explorer and double-click on full.exe. This will install g++ (and a lot of other things that you don’t really need) on your hard drive. Use Save Link As… or Save Target As… Be sure the browser saves the file as C:\full.exe. Download full.exe, an about 14 megabyte executable, to C:\full.exe by right-clicking on the link.I’ll assume that it is C:, but you can choose a different one. If you choose a different drive or a different folder, you’ll need to adapt the directions below accordingly.


