MinGW-Builds can be found:
Here in either "Toolchains targetting Win32/64" and then "Personal Builds" and "mingw-builds" then 5.2.0 and then your threading and exception preferences.
To build Code::Blocks from SVN, you generally follow the instructions:
Here.
The problem is that with MinGW-Builds 5.2.0 the compilation will fail while building wxWidgets 2.8.12. Just fail. Goodbye, try again.
I have been dealing with this issue, and as a result have had to use the provided nightlies for quite the while, but now after much persistence I have found the solution.
See:
Here.
In the file: \path\to\mingw32\i686-w64-mingw32\include\commctrl.h
(Or 64 bit 5.2.0: \path\to\mingw64\x86_64-w64-mingw32\include\commctrl.h)
Find the _WIN32_IE 0x0501 definition block and make it look exactly like this:
ifndef WINRESRC
ifndef _WIN32_IE
//#define _WIN32_IE 0x0501
endif
endif
#define _WIN32_IE 0x0603
Now, wxWidgets on MinGW-Builds 5.2.0 will compile and then you can move onto compiling Code::Blocks itself. And there was much rejoicing.
You can even build wxWidgets in 64 bit (using "CFG=64" on its build line) MinGW 5.2.0 BUT there is no 64 bit vanilla project in the Code::Blocks source to go from there.
I used these exact lines in config.gcc for wxWidgets:
# Standard flags for CC
CFLAGS ?= -fno-keep-inline-dllexport
# Standard flags for C++
CXXFLAGS ?= -fno-keep-inline-dllexport -std=gnu++11 -fpermissive
I'm pretty happy now, the only thing that could make things even better is if a 64 bit codeblocks.cbp project was added to the trunk source so I could go full 64 bit with everything.