How to Change the gcc compiler version of Code:: Blocks?

Hello, Can anyone tell me how to change the GCC version of code blocks.
The code blocks version I have used was 13.12 and it uses GCC 4.7.1. I want it to change the GCC version to the latest version. Say,5.2.0 from equation.com
In the Code Blocks IDE, Settings=>Compiler=>Toolchain executables=>Compiler's installation directory, specify the top level directory into which MinGW was installed. eg C:\Equation\MinGW

This IDE is somewhat brain-dead, so it won't be able to find the compiler on its own.
Settings=>Compiler=>Toolchain executables=>, set
C compiler: gcc.exe
C++ compiler: g++.exe
Linker for dynamic libs: g++.exe
Make program: make.exe
Thank you very much! It works.
Topic archived. No new replies allowed.