I am having exactly the same problem in Mac OS X 10.6.7.
I installed CodeBlocks 10.05-p1-mac in Development/Applications as instructed. It detects the GNU GCC compiler, I make a new Frame (or Dialog) project from wxWidgets 2.8x using wxSmith, select the default values, and try to run it. It does the same loop as above, continuing to ask to be compiled.
Can someone point me to an OS X solution?
Frederick