Problem compiling Windows CodeBlocks examples with Mingw

When I open up the codeblocks workspace and try to build it, it successfully builds the engine (with lots of warnings), and the helloworld project which crashes when you try to start it.

But the testbed doesn't build, it just stops with some error messages:

Quote:
:: === HelloWorld, Debug ===
..\..\Include\..\Source\Collision\b2PairManager.h:121: warning: no newline at end of file
..\..\Include\..\Source\Collision\b2BroadPhase.h:139: warning: no newline at end of file
..\..\Include\..\Source\Dynamics\b2WorldCallbacks.h:: In member function `virtual b2BoundaryResponse b2WorldListener::NotifyBoundaryViolated(b2Body*)':
..\..\Include\..\Source\Dynamics\b2WorldCallbacks.h:54: warning: statement has no effect
..\..\Include\..\Source\Dynamics\..\Collision\b2BroadPhase.h:139: warning: no newline at end of file
C:\Documents and Settings\Gurkan\Desktop\Box2D_v1.4.3\Box2D_v1.4.3\Box2D\Examples\HelloWorld\HelloWorld.cpp:: In function `int main(int, char**)':
C:\Documents and Settings\Gurkan\Desktop\Box2D_v1.4.3\Box2D_v1.4.3\Box2D\Examples\HelloWorld\HelloWorld.cpp:28: warning: statement has no effect
C:\Documents and Settings\Gurkan\Desktop\Box2D_v1.4.3\Box2D_v1.4.3\Box2D\Examples\HelloWorld\HelloWorld.cpp:29: warning: statement has no effect
:: === TestBed, Debug ===
obj\Debug\Examples\TestBed\Tests\TestEntries.o:: In function `ZN3WebD0Ev':
C:\Documents and Settings\Gurkan\Desktop\Box2D_v1.4.3\Box2D_v1.4.3\Box2D\Examples\TestBed\Tests\TestEntries.cpp:149: undefined reference to `b2Distance(b2Vec2*, b2Vec2*, b2Shape const*, b2Shape const*)'
C:\Documents and Settings\Gurkan\Desktop\Box2D_v1.4.3\Box2D_v1.4.3\Box2D\Examples\TestBed\Tests\TestEntries.cpp:149: undefined reference to `g_GJK_Iterations'
:: === Build finished: 2 errors, 6 warnings ===


I don't know what might be the problem. Any idea?
I'm guessing the CodeBlocks project is out of date. Compare the files in the project with the files on disk.
I couldn't get it to work with mingw even when I got a copy from the SVN.

I got it to work with visual studio so it doesn't matter 🙂

Original thread: https://box2d.org/forum/viewtopic.php?t=225