

The advantage of this setup is that you will be able to compile any standard C99, C11, C++11, C++14, C++17 and Fortran program on your Windows machine. In this article I will show you how to install the Code::Blocks IDE on Windows and how to configure it to use GCC 9 for building C, C++ and Fortran programs. You may also want to learn how to identify bugs in your code.Solarian Programmer My programming ramblings Home Archives Contact Privacy Install Code::Blocks and GCC 9 on Windows - Build C, C++ and Fortran programs Posted on Novemby Paul That’s it! I hope this tutorial helped you install Code Blocks on Ubuntu 22.04/20.04. You can also choose your default compiler by going to Settings > Compiler > Global Compiler Settings. sudo apt install mingw-w64Īfter choosing your default C compiler, you can start using Code Blocks to write programs. If you want to compile native Windows binaries on Linux, then you can install the mingw-w64 package. To install the Clang compiler: sudo apt install clang To install gcc, run: sudo apt install gcc Clang – Clang is much faster and uses far less memory than GCC and it provides extremely clear and concise diagnostics (error and warning messages).GNU C Compiler – the defacto-standard open-source C compiler.Two popular open-source C compilers available for Linux are: Upon the first launch of Code Blocks, you will be prompted with a Compiler auto-detection window: Once installed, you can start Code Blocks IDE from Unity Dash or your preferred app launcher. How to Install Code Blocks IDE on Ubuntu 22.04/20.04Ĭode Blocks is in the default Ubuntu package repository, so you can open up a terminal window and run the following command to install it. A plug-in system to support other programming languages.A debugger with full breakpoint support.

C++ code completion, class browser, a hex editor.Custom build system and optional Make support.Supports multiple compilers including GCC, Clang, Visual C++, MinGW, and many more.Code Blocks is a free, open-source integrated development environment (IDE) for C, C++ and Fortran. This tutorial will be showing you how to install Code Blocks on Ubuntu 22.04/20.04.
