not sure if this is a problem with CodeBLocks or with MinGW, but when I tried to build/run a program, I got this:
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libmingw32.a(main.o):main.c|| undefined reference to `WinMain@16'|
The version of MinGW I have came with CodeBlocks 10.05 (the latest version).