I compiled a code in codeblocks and someone asked me whether I compiled it with optimization or without optimization.
1. Do full rebuild.
2. Inspect the build full build log.
3. Search the meaning of each option you see in the log in the manual of the compiler you're using.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F)