Showing posts with label gnu. Show all posts
Showing posts with label gnu. Show all posts

How to Download & Install GCC Compiler for C in Windows

In this tutorial, we will learn to install C in Windows, Mac, and Linux.

Install C on Windows

We will use an open-source Integrated Development environment named Code::Blocks which bundles a compiler (named gcc offered by Free Software Foundation GNU), editor and debugger in a neat package.
Step 1) Go to and click Binary Release.
Step 2) Choose the installer with GCC Compiler, e.g., codeblocks-17.12mingw-setup.exe which includes MinGW's GNU GCC compiler and GNU GDB debugger with Code::Blocks source files.
Step 3) Run the downloaded installer and accept the default options.
Step 4) Accept the Agreement
Step 5) Keep the component selection default and click Next.
Step 6) You may change the installation folder and click Next.
Step 7) To launch Code::Blocks double click on the icon.
Step 8) It will detect the gcc compiler automatically, set it as default.
Associate C/C++ files with code::blocks
Step 9) You will see the IDE Home screen.


'C' program can be written and executed on any machine that has a suitable environment to run the program. Its recommended using an IDE to run C programs. An IDE includes a compiler, editor and debugger. Clanfg, MinGW compiler (Minimalist GNU for Windows), Portable 'C' compiler, Turbo C are popular compilers available.