User Tools

Site Tools


Code::Blocks for Windows

If you would like to use Code::Blocks instead of Visual Studio, there's a few things required in order to use for developing Orx projects.

These are:

  1. Code::Blocks 16.01 minimum is required
  2. You need to use a specific version and type of MinGW.

Getting Code::Blocks

Code::Blocks can be downloaded from:

The version required is codeblocks-16.01-setup.exe which doesn't come with a compiler.

Run the installation and choose the default options. Then run Code::Blocks.

When running Code::Blocks for the first time, a dialog box will appear with a list of auto-detected compilers on your system. If you already have a non-TDM version of mingw greater or equal to version 5.3.0, then select that and you are good to go. If not, OK the dialog box and continue reading.

Which is the the right MinGW?

Code::Blocks needs a compiler. It doesn't ship with one in the setup version. But you will need to pick the right MinGW. There are a few variations around:

  1. MinGW - this is the original vanilla project.
  2. Mingw-w64 - this is a seperate project that provides a 64 bit version of MinGW.
  3. TDM-GCC - this is a variation of the original MinGW project and is traditionally packaged with older Codelite and Code::Blocks IDEs

Since Orx build commit 0e32f26, TDM versions of MinGW can no longer be used. Nor are Mingw-w64 versions supported by Orx as yet.

Therefore, the vanilla version of MinGW is the correct one to use from here on.

At the time of writing, 5.3.0 is the version to use. But to check on the current version requirements, visit the Orx supported platforms here.

Getting MinGW

Start by downloading the MinGW installer at:

Run the installer and go through the steps. These are outlined on this page:

Follow the steps titled Getting mingw32 and Updating the PATH environment variable.

Telling Code::Blocks about the new Compiler

  1. In Code::Blocks , go to Settings / Compiler.
  2. Locate the “Selected compiler” dropdown.
  3. The MinGW compiler you installed will become listed. If not, restart Code::Blocks.
  4. Select the compiler from the dropdown.
  5. Ok to close the dialog.
  6. Open your project, or Orx project. You can build your Workspace.

You're all good to go.

en/tutorials/codeblocks_for_windows.txt · Last modified: 2018/02/14 04:46 (17 months ago) by iarwain