I thought the OpenCL University Kit download comes with a collection of examples projects that built using Code::Blocks (there are *.cbp files).
The examples are within the tar directory. Only the nbody one comes with a Code Blocks project but there is also a Makefile which you can simply use.
The other examples like the simpler Multidevice are just a couple of files that can easily be compiled with gcc
Retrieving data ...