Well, I just tried it on a computer at work and the problem didn't occur. So there goes the theory that it's a problem with Code::Blocks...
Please don't just blame it on a bug in Code::Blocks and give up. Code::Blocks works for hundreds of users on a daily basis, so this is probably solvable with a minimal effort from you to figure out what's going wrong.