It seems that I have already solved it.
I have other IDES linked to the installation of MinGW and I think the problem is coming. As I do not want to ignore the other IDES I have done the following:
I downloaded the version of code blocks that includes minGW
I have installed
codeblocks-16.01mingw-setup.exe and
wxWidgets-3.0.2 on another computer and have compiled using these lines without problems using the minGW that comes with codeblocks:
First one line and then the other
mingw32-make -f makefile.gcc BUILD=debug SHARED=1 MONOLITHIC=1 UNICODE=1 CXXFLAGS=-std=gnu++11
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 CXXFLAGS=-std=gnu++11
After proving that it worked on the other computer I copied the folder
wxWidgets-3.0.2 compiled and I pasted it on the computer that has more IDES and gave me the errors.
And the last step with which I have managed to compile the welcome window: In the codeblocks go to
Settings >
Compiler >
Toolchain executables > and in
Compiler's installation directory I've put the path of minGW that comes with codeblocks
C: \ CodeBlocks \ MinGW Following this tutorial base
Youtube.com/watch?v=vmobZRIlBMU