To compile chipmunk physics, do the following:

1. Download the library.  The link to the latest release can be found here: http://code.google.com/p/chipmunk-physics/
2. Unpack the library
3. Drag and drop the codeblocks folder into the newly extracted chipmunk folder
4. Open Code::Blocks, and find the project file (it will be in the codeblocks/chipmunk folder)
5. The library should have compiled to a file called libchipmunk.a