DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Why We Use FreeBSD Over Linux: A CTO’s Perspective
  • iRODS: An Open-Source Approach to Data Management in Large-Scale Research Environments
  • Top Three Methods for iOS Development on Linux
  • Step-By-Step Tutorial: Installing Eclipse IDE

Trending

  • Stop Writing Database Migration Scripts: Declarative Schema Sync for Java
  • Genkit Flows as senro Steps: Extremely Powerful AI Pipelines in Go
  • Taming Parameter Sniffing in SQL Server 2022 With PSP Optimization
  • Two Engines, One Query: DuckDB Inside Neo4j

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  1. DZone
  2. Software Design and Architecture
  3. Cloud Architecture
  4. Install CodeBlocks on Windows and Mac

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.

By 
Chand Pasha
·
Updated May. 21, 20 · Code Snippet
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
67.5K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

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!

Open source Download Cross platform Directory GNU Compiler Collection c++ Installer (macOS) Linux (operating system) Integrated development environment

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

Opinions expressed by DZone contributors are their own.

Related

  • Why We Use FreeBSD Over Linux: A CTO’s Perspective
  • iRODS: An Open-Source Approach to Data Management in Large-Scale Research Environments
  • Top Three Methods for iOS Development on Linux
  • Step-By-Step Tutorial: Installing Eclipse IDE

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook