This tutorial explains how to install Codeblocks on your local environment or PC with Windows, Mac, or on Linux.
Join the DZone community and get the full member experience.
Join For FreeThis tutorial explains how to install Codeblocks on your local environment or PC with Windows, Mac, or on Linux.
CodeBlocks is a cross-platform, open-source, free IDE that supports GCC, Visual C++, and Clang compilers. Codeblocks was developed in C++ using wxWidgets for Windows and Linux as the GUI toolkit. It is oriented towards C, C++, and Fortran with custom build system support.
Downloading Code::Blocks: Download the latest version of Code::Blocks from their official site. Download from: CodeBlocks-13.12-mac.zip. 26 Dec 2013: FossHUB or Sourceforge.net. NOTES: Code::Blocks 20.03 for Mac is currently not available due to issues caused by Apple hardening their install packages and lack of Mac developers. We could use an extra Mac. How to Download And Install CodeBlocks ON Mac FREE Download BEST METHOD Its Damn Clear from the TItle! JUST DOWNLOAD IT AND ENJOY -. The 13.12 version of CodeBlocks for Mac is provided as a free download on our website. This application's bundle is identified as org.codeblocks.app. Codeblocks-10.05-p1-mac.dmg is the most common filename for this program's installer. Our antivirus check shows that this Mac download is safe.
Install CodeBlocks IDE on Windows
- Visit codeblocks.org. Click Download from the menu, then click on download the binary release.
- Go to your operating platform section (e.g., Windows XP / Vista / 7 / 8.x / 10), then download the installer with GCC Compiler, e.g., codeblocks-17.12mingw-setup.exe or Click here to download.
- Double-click to run the downloaded installer and click Next on the pop-up window. Now click on “I Agree” to accept the license agreement.
- On the new pop-up, don’t do anything, just click Next and then change the installation directory if you want (default directory recommended). Click Install.
- Wait for a minute for installation to complete. A new pop-up asks you to run Codeblocks. Click YES, and then it shows the compiler Codeblocks detected. Click OK.
- Now we have installed Codeblocks on windows.
We need to verify the Compiler and Debugger path (this step is optional).
- Go to menu options and click on Settings >> Compiler. In the selected compiler, by default, it shows GNU GCC Compiler. Now select the “Toolchain Executables” tab from the below tabs and check the Compiler’s Installation Directory is set to “
C:Program FilescodeblocksMinGW
. - Similarly, for debugger path: Settings >> Debugger >> GDB/CDB debugger >> Default. In Executable, the path should be
C:Program FilescodeblocksMinGWbingdb.exe
orC:MinGWbingdb.exe
if you have installed MinGW compiler before installing Codeblocks.
Note: If you encountered problems running the debugger with CodeBlocks, do a clean installation. Uninstall Codeblocks and then first install MinGW and then install Codeblocks.
Thanks for reading!
Published at DZone with permission of Chand Pasha. See the original article here.
Opinions expressed by DZone contributors are their own.
Please select a setup package depending on your platform:
NOTE: For older OS'es use older releases. There are releases for many OS version and platforms on the Sourceforge.net page.
NOTE: There are also more recent nightly builds available in the forums or (for Ubuntu users) in the Ubuntu PPA repository. Please note that we consider nightly builds to be stable, usually.
NOTE: We have a Changelog for 20.03, that gives you an overview over the enhancements and fixes we have put in the new release.
NOTE: The default builds are 64 bit (starting with release 20.03). We also provide 32bit builds for convenience.
Windows XP / Vista / 7 / 8.x / 10:
File | Date | Download from |
codeblocks-20.03-setup.exe codeblocks-20.03-setup-nonadmin.exe codeblocks-20.03-nosetup.zip codeblocks-20.03mingw-setup.exe codeblocks-20.03mingw-nosetup.zip codeblocks-20.03-32bit-setup.exe codeblocks-20.03-32bit-setup-nonadmin.exe codeblocks-20.03-32bit-nosetup.zip codeblocks-20.03mingw-32bit-setup.exe codeblocks-20.03mingw-32bit-nosetup.zip | 29 Mar 2020 29 Mar 2020 29 Mar 2020 29 Mar 2020 29 Mar 2020 02 Apr 2020 02 Apr 2020 02 Apr 2020 02 Apr 2020 02 Apr 2020 | FossHUB or Sourceforge.net FossHUB or Sourceforge.net FossHUB or Sourceforge.net FossHUB or Sourceforge.net FossHUB or Sourceforge.net FossHUB or Sourceforge.net FossHUB or Sourceforge.net FossHUB or Sourceforge.net FossHUB or Sourceforge.net FossHUB or Sourceforge.net |
NOTE: The codeblocks-20.03-setup.exe file includes Code::Blocks with all plugins. The codeblocks-20.03-setup-nonadmin.exe file is provided for convenience to users that do not have administrator rights on their machine(s).
NOTE: The codeblocks-20.03mingw-setup.exe file includes additionally the GCC/G++/GFortran compiler and GDB debugger from MinGW-W64 project (version 8.1.0, 32/64 bit, SEH).
NOTE: The codeblocks-20.03(mingw)-nosetup.zip files are provided for convenience to users that are allergic against installers. However, it will not allow to select plugins / features to install (it includes everything) and not create any menu shortcuts. For the 'installation' you are on your own.
If unsure, please use codeblocks-20.03mingw-setup.exe!
Linux 32 and 64-bit:
Codeblocks Update Version Download
Distro | File | Date | Download from |
codeblocks_20.03_amd64_oldstable.tar.xz codeblocks_20.03_i386_oldstable.tar.xz codeblocks_20.03_amd64_stable.tar.xz codeblocks_20.03_i386_stable.tar.xz | 29 Mar 2020 29 Mar 2020 29 Mar 2020 29 Mar 2020 | FossHUB or Sourceforge.net FossHUB or Sourceforge.net FossHUB or Sourceforge.net FossHUB or Sourceforge.net | |
codeblocks-20.03-1.el6.rmps.tar codeblocks-20.03-1.el7.rmps.tar | 29 Mar 2020 29 Mar 2020 | FossHUB or Sourceforge.net FossHUB or Sourceforge.net | |
For Ubuntu, use this PPA: | 29 Mar 2020 |
Note: The Linux packages above are compressed archives (tar, tar.xz or tar.bz2). When you decompress the package you downloaded on your system, you will find all the .rpm or .deb packages required to install Code::Blocks.
Note: On RedHat/CentOS older revisions of 6 (up to 6.2 as far as we know) you need to add repoforge (former rpmforge) to your repolist, to be able to install the needed wxGTK-package. See http://repoforge.org/use for an instruction.
Download Code Blocks Mac Os X
Note: Redhat/CentOS probably also needs an installed hunspell-package, if you want to install the contrib-plugins.
Mac OS X:
File | Date | Download from |
CodeBlocks-13.12-mac.zip | 26 Dec 2013 | FossHUB or Sourceforge.net |
NOTES:
- Code::Blocks 20.03 for Mac is currently not available due to issues caused by Apple hardening their install packages and lack of Mac developers. We could use an extra Mac developer to work on these issues.
- The provided download contains an Application Bundle (for the i386 architecture) built for Mac OS X 10.6 (and later), bundling most Code::Blocks plugins.
Download Codeblocks Mac
For older release versions please check here.