Register / Login

Code::Blocks setup guide

We like codeblocks 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: as of late May 2010, there’s a new version of code::blocks (10.05) – which updates the compiler (GCC), so with the OF 0.061 download, you need to follow the instructions to make this change to OF . for future releases, we’ll fix this problem…


a) download code::blocks binary (latest release)
Download Code::Blocks note: download WITH mingw.

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 codeblocks to work with OF
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

note: if you have already installed dev-c++, make sure that CB picks the right mingw folder (c:/program files/cb/mingw), it has a tendancy to default to c:/mingw, where devc++ installs… more info on this
As always have fun!