I followed the instructions linked in this thread:
viewtopic.php?f=19&t=46125
for compiling the Widgets (i don't plan to use Code::blocks, so I have just followed the compiling part), and at the end it worked (despite a lot of warnings about "implicitly-declared" something is deprecated ... is this normal?)
But i can't buiild the minimal example.
This is how i compiled the widgets:
Code: Select all
C:\SVILUPPO\wxWidgets-3.1.3\build\msw>mingw32-make -f makefile.gcc CXXFLAGS="-std=gnu++11" USE_XRC=1 SHARED=0 MONOLITHIC=0 BUILD=release CFG=REL_9201
Code: Select all
C:\SVILUPPO\wxWidgets-3.1.3\samples\minimal>mingw32-make -f makefile.gcc CXXFLAGS="-std=gnu++11" USE_XRC=1 SHARED=0 MONOLITHIC=0 BUILD=release CFG=REL_9201
makefile.gcc:8: build.cfg: No such file or directory
mingw32-make: *** No rule to make target 'build.cfg'. Stop.
Code: Select all
C:\SVILUPPO\wxWidgets-3.1.3\samples\minimal>mingw32-make -f makefile.gcc
makefile.gcc:8: build.cfg: No such file or directory
mingw32-make: *** No rule to make target 'build.cfg'. Stop.
Code: Select all
C:\SVILUPPO\wxWidgets-3.1.3\samples\minimal>mingw32-make -f minimal
mingw32-make: minimal: No such file or directory
g++ minimal.cpp -o minimal
minimal.cpp:20:10: fatal error: wx/wxprec.h: No such file or directory
20 | #include "wx/wxprec.h"
| ^~~~~~~~~~~~~
compilation terminated.
<builtin>: recipe for target 'minimal' failed
mingw32-make: *** [minimal] Error 1
Code: Select all
C:\SVILUPPO\wxWidgets-3.1.3\samples\minimal>mingw32-make -f minimal CXXFLAGS="-std=gnu++11" USE_XRC=1 SHARED=0 MONOLITHIC=0 BUILD=release CFG=REL_9201
mingw32-make: minimal: No such file or directory
g++ -std=gnu++11 minimal.cpp -o minimal
minimal.cpp:20:10: fatal error: wx/wxprec.h: No such file or directory
20 | #include "wx/wxprec.h"
| ^~~~~~~~~~~~~
compilation terminated.
<builtin>: recipe for target 'minimal' failed
mingw32-make: *** [minimal] Error 1