Default Code::Blocks project doesn't compile properly.

When I first tried to compile on Code::Blocks RC1, it wouldn't get anywhere at all:
Claimed the file it was trying to create, libBox2d.a, didn't exist (Which makes sense), but wouldn't let it compile without it.
So after hours of working with the latest nightly build, I finally got it working. (It kept giving me trouble with installing the compiler)
Now, Engine compiles, but not without 1,000 warnings of mostly "Statement has no effect" or "No newline at end of file";

That's fine, it's not like I've never had a successful library built with those errors, but I guess there's a first time for everything.

When I go to compile anything else, with NO direct reference to it, it errors out with:
undefined reference to 'b2_defaultFilter'

Do I need to update my GCC or update my Box2D to a SVN build?
Alright, so I updated to Box2D SVN and updated to the latest MinGW.
I had to re-add the files because the C::B project is out of date, but now Engine compiles with only minor, useless warnings, and HelloWorld compiles fine.

It's just a minor issue, but TestBed doesn't compile:

Compiling: ..\..\Contrib\freeglut\freeglut_cursor.c
mingw32-gcc-sjlj.exe: CreateProcess: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

I say minor, because freeglut isn't what I intend to use anyway. 🙂

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