Hmm... Well, Disch, my experience with Code::Blocks is that the default setting is that when it completes running code, it displays the return value (process return blah blah blah) without closing the console, or clearing it. What appears to be happening here isn't that your compiler is failing (you did set it so it knows what compiler to use, right?)... though to be quite honest, I just don't know what it is. Try using a different IDE and see whether the problem persists.