MinGW-Builds can be found: Here (http://sourceforge.net/projects/mingw-w64/files/) 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 (http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Windows).
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 (http://sourceforge.net/p/tdm-gcc/bugs/269/).
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. ;) :)
# Standard flags for CC
CFLAGS ?= -fno-keep-inline-dllexport
# Standard flags for C++
CXXFLAGS ?= -fno-keep-inline-dllexport -std=gnu++11 -fpermissive
Why don't you expand this to:
# Standard flags for CC
CFLAGS ?= -D_WIN32_IE=0x0603 -fno-keep-inline-dllexport
# Standard flags for C++
CXXFLAGS ?= -D_WIN32_IE=0x0603 -fno-keep-inline-dllexport -std=gnu++11 -fpermissive
?
This would avoid to patch the source files.
Found the root cause and some issues in the latest SVN.
First of all, SVN 10625 errors when compiling with wx 3.0.2:
http://i.imgur.com/yexc1qM.jpg
Going back to SVN 10623 compiling with wx 3.0.2 succeeds.
Now, I found the fix for the issue. wxWidgets 3.0.2 has to be build with the CFG=64 option:
mingw32-make -f makefile.gcc CFG=64 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1
Also, in config.gcc I did no keep inline and -std=gnu++11
And then the codeblocks wx 3.0.x 64 bit project -> build options -> custom variables, WX_CFG has to be given to value "64"
Then the project will compile fine and most importantly, the cursor caret in the editor window now works correctly.