Download the source code; If you feel comfortable building applications from source, then this is the recommend way to download Code::Blocks. Downloading the source code and building it yourself puts you in great control and also makes it easier for you to update to newer versions or, even better, create patches for bugs you may find. Download TDM-GCC Compiler for free. GCC for 32-bit and 64-bit Windows with a real installer & updater. TDM-GCC is now hosted on Github at The most recent stable releases from the GCC compiler project, for 32-bit and 64-bit Windows, cleverly disguised with a real installer & updater. Code::Blocks for Mac is a free C, C and Fortran IDE that has a custom build system and optional Make support. The application has been designed to be very extensible and fully configurable. Code::Blocks is an IDE packed full of all the features you will need. It has a consistent look, feel and operation across its supported platforms.
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 http://www.codeblocks.org/downloads 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 thedownloaded 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.
Install C in Linux
Linux operating systems mostly comes with GCC preinstalled. To verify if the compiler is installed on the machine, run the following command in the terminal:
After executing this command if the gcc is installed on the machine then it will return the information about the compiler otherwise it will ask you to install the compiler.
To set up the 'C' environment on Linux distributions follow the given steps:
Code Blocks Compiler Setup
1. Open terminal.
2. For red-hat, Fedora users, type and execute this command
3. For Debian and Ubuntu users, type and execute following command
4. To verify that the GCC has been successfully installed on the machine as we discussed earlier, execute the following command
Install C on MAC
To set up a 'C' programming environment on MAC operating system, follow the given steps:
1. Visit the given link https://developer.apple.com/downloads/index.action and download. You will need an Apple developer ID
'Command Line Tools for X-Code,' pick any version (latest version is always recommended) and download the .dmg file.
2. After the file is being downloaded on the machine, double click and follow the wizard and install the file. Always keep the default settings as suggested by the installation wizard.
3. After the installation process, open a terminal and run gcc -v command to check if everything is successfully installed.
Conclusion:
'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.
Developer(s): | Yiannis Mandravellos |
Maintainer(s): | |
Version: | 0.99 |
The Compiler plugin is an interface to various compilers:
Gnu Gcc Compiler Download Free
- GNU GCC compiler
- Microsoft Visual C++ Free Toolkit 2003
- Borland C++ Compiler 5.5
Compiler toolbar
The icons in the Compiler toolbar have the following meanings:
- Ctrl-F9
- Compile (and link, if applicable) the active build target of the current project. If no project is open, Code::Blocks will attempt compilation of the active file in the editor.
- Ctrl-F10
- Run the executable output of the active build target of the current project. If no project is open, Code::Blocks will attempt to run the executable output of the active file in the editor.
- F9
- Compile (and link, if applicable) the active build target of the current project and run the output. If no project is open, Code::Blocks will attempt to compile the active file in the editor, then run its output.
- Ctrl-F11
- Clean (delete) all the object files and compiled output of the active build target of the current project, then compile (and link, if applicable) cleaned target. This function requires an active project.
- Stop a compilation before it has completed. This function requires an active project.
- Change the active build target of the current project.
See also
Development documents:
Retrieved from 'http://wiki.codeblocks.org/index.php?title=Compiler_plugin&oldid=7450'