thanks guys, I'm a beginner at coding world, faced a great problem with this 'build and run' issue. but it's fixed by the help of your suggestions guys.
codeblocks> setting> compiler > toolchain executable > auto detect (from compiler's installation directory) > ok
and problem solved.