Search the forum for "uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]".
The first post found is yours, the second will guide you to the solution for your problem.
Nevertheless, the order of search results might change in the future, so I give you a direct link to a thread about a similar problem this time:
http://forums.codeblocks.org/index.php/topic,9198.0.html .
The next time your topic might get locked or silently removed, due to ignorance.
Please, please,
search before you post, search in the forum and the web,
try to find a solution yourself, if there is really no answer anywhere you can still ask.
Maybe you should read the following site:
http://www.catb.org/~esr/faqs/smart-questions.html, but be aware that it is not related to C::B in any way and can not give you any help if you have questions related to C::B, but it can guide you (and so many others) to a better way to ask without the risk to be ignored, removed or locked.