I think the problem may be that I copied the folder with all the source files to a different location, so it wasn't being updated.
I've now changed my project so it includes the files from the right location, but I have a new error.
It looks like this error has been reported before.
viewtopic.php?f=3&t=5427..\..\..\Box2D\freeglut\GL\freeglut_std.h|60|warning: "NOMINMAX" redefined|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\include\c++\mingw32\bits\os_defines.h|46|warning: this is the location of the previous definition|
..\..\..\Box2D\Box2D\Common\b2Settings.h||In function 'float32 b2MixFriction(float32, float32)':|
..\..\..\Box2D\Box2D\Common\b2Settings.h|142|error: 'sqrtf' is not a member of 'std'|
..\..\..\Box2D\Box2D\Common\b2Math.h||In member function 'float32 b2Vec2::Length() const':|
..\..\..\Box2D\Box2D\Common\b2Math.h|119|error: 'sqrtf' is not a member of 'std'|
..\..\..\Box2D\Box2D\Common\b2Math.h||In member function 'float32 b2Mat22::GetAngle() const':|
..\..\..\Box2D\Box2D\Common\b2Math.h|256|error: 'atan2f' is not a member of 'std'|
..\..\..\Box2D\Box2D\Common\b2Math.h||In member function 'float32 b2Transform::GetAngle() const':|
..\..\..\Box2D\Box2D\Common\b2Math.h|353|error: 'atan2f' is not a member of 'std'|
C:\ActiveProjects\Downloads\Box2d_testsvn\Box2D\Testbed\Framework\Test.h||In constructor 'Settings::Settings()':|
C:\ActiveProjects\Downloads\Box2d_testsvn\Box2D\Testbed\Framework\Test.h|88|warning: 'Settings::drawStats' will be initialized after|
C:\ActiveProjects\Downloads\Box2d_testsvn\Box2D\Testbed\Framework\Test.h|79|warning: 'int32 Settings::drawShapes'|
C:\ActiveProjects\Downloads\Box2d_testsvn\Box2D\Testbed\Framework\Test.h|55|warning: when initialized here|
||=== Build finished: 4 errors, 5 warnings ===|