{{announcement.body}}
{{announcement.title}}

Install CodeBlocks on Windows and Mac

DZone 's Guide to

Install CodeBlocks on Windows and Mac

This tutorial explains how to install Codeblocks on your local environment or PC with Windows, Mac, or on Linux.

· Integration Zone ·
Free Resource

This 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.

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 Files\codeblocks\MinGW.
  • Similarly, for debugger path: Settings >> Debugger >> GDB/CDB debugger >> Default. In Executable, the path should be C:\Program Files\codeblocks\MinGW\bin\gdb.exe or C:\MinGW\bin\gdb.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!

Topics:
c language ,c++ beginner course ,install codeblocks ,integration ,open source ,programming blogs ,tutorial

Published at DZone with permission of Chand Pasha . See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}