how to install cygwin gcc compiler on windows

8
How to install Cygwin GCC compiler on Windows 1. Install the Cygwin installer from https://cygwin.com/install.html 2. Click on the installer to start the setup wizard.

Upload: gurkamal-singh

Post on 13-Apr-2017

81 views

Category:

Education


5 download

TRANSCRIPT

Page 1: How to install Cygwin GCC Compiler on Windows

How to install Cygwin GCC compiler on Windows

1. Install the Cygwin installer from https://cygwin.com/install.html

2. Click on the installer to start the setup wizard.

Page 2: How to install Cygwin GCC Compiler on Windows

3. Click ‘next’ and choose the ‘Choose Installation Type’ window will appear and select ‘Install from Internet’ as the download source.

Page 3: How to install Cygwin GCC Compiler on Windows

4. Click ‘next’ and ‘Choose Installation Directory’ window will appear. Let root directory be the installation directory.

Page 4: How to install Cygwin GCC Compiler on Windows

5. Click ‘next’ and ‘Select Local Package Directory’ window will appear. Again click ‘next’ and left default directory be the local package directory.

Page 5: How to install Cygwin GCC Compiler on Windows

6. Click ‘next’ and ‘Select Connection Type’ window will appear.

Choose ‘Direct Connection’ and click ‘next’.

Page 6: How to install Cygwin GCC Compiler on Windows

7. From ‘Choose Download Sites’ window, select the first link and click ‘next’ to start the installation.

Page 7: How to install Cygwin GCC Compiler on Windows

8. Next, you have the select the packages for gcc compiler. In the ‘Select Package’ window select ‘Devel’ package and click on the little circle to change it from ‘Default’ to ‘Install’ and click ‘next’.

Page 8: How to install Cygwin GCC Compiler on Windows

9. The installation will take some time. After completion click on the Cygwin terminal from the shortcut created on desktop and type

g++ -v : - to check the version of GCC Compiler. It must be 4.9.2 or higher.

To compile the C/C++ code type : - ./a.exe

Remember : - Put the files in the root folder i.e C:\cygwin64\home\dell in windows.