code::blocks setup guide

We like Code::Blocks for Windows development since it's light weight, and avoids some of the quirkiness of windows visual studio. here's a step by step tutorial to get up and running. Note: Step e) is required to run openFrameworks. Please do not skip this step.

Version

The new version of Code::Blocks (12.11) is not compatible with openFrameworks versions 0073 and lesser. It will work with 0.7.4 (forthcoming) and what's on the develop branch of github. This is because of a change in the compiler which makes libraries compiled with an older compiler incompatible with the newer compiler. If you are using openFrameworks 0073 or lesser, use Code::Blocks 10.05.

Installation

a) Download Code::Blocks binary (latest release)

Download Code::Blocks Note: download WITH MinGW. Code::Blocks version 12.11 works well with openFrameworks 0.7.4+.

a_download

b) Install

b_install

c) You don't have to change anything

c_setup

d) I chose not too, since Code::Blocks is not my primary IDE

d_assoc

e) Add files to MinGW

Similar to devcpp, we will have to add a few libraries to devcpp. You can download the files:

Additions for Code::Blocks to work with openFrameworks

In the zip there are two folders, you need to put the contents of them into the contents of folders in MinGW.

  • Add the contents of the folder "add_to_codeblocks_mingw_include" into "C:\Program Files\CodeBlocks\MinGW\include" (or wherever your app\mingw\include is)
  • Add the contents of the folder "add_to_codeblocks_mingw_lib" into "C:\Program Files\CodeBlocks\MinGW\lib" (or wherever your app\mingw\lib is)

e_putInMingw

These are additional libs and header files that need to be added to the MinGW distribution that comes with Code::Blocks.

Here's a quick video which shows what this should look like: copy steps for codeblocks

As always have fun!