https://wiki.wxwidgets.org/WxWidgets_Build_Configurations


in dir C:\wxWidgets-3.0.4\build\msw

64bit wx build:
mingw32-make SHELL=CMD.exe -f makefile.gcc BUILD=release UNICODE=1 SHARED=0 CXXFLAGS="-std=gnu++11"


in dir C:\wxWidgets-3.0.4x32\build\msw

32bit wx compile:
mingw32-make.exe -f makefile.gcc BUILD=release CPP="gcc -E -D_M_IX86 -m32" LDFLAGS="-m32" CPPFLAGS="-m32" WINDRES="windres --use-temp-file -F pe-i386"  UNICODE=1 SHARED=0 CXXFLAGS="-m32 -fno-keep-inline-dllexport -std=gnu++11"


---------------------------------------
******************
FIX TIFF ERROR 32/64 bit
******************

in wx\src\tiff\libtiff\tif_config.h:

CHANGE:
/* MSVC 14 does have snprintf() and doesn't allow defining it */
#if !defined(_MSC_VER) || _MSC_VER < 1900
# define snprintf _snprintf
#endif

to:

/* MSVC 14 does have snprintf() and doesn't allow defining it.  Also MinGW32
   starting with GCC 6.3 has changed _snprintf so that it is no longer suitable.
   It does have snprintf, so just use it. */
#if defined (__MINGW32__) && (__GNUC__ > 6 || (__GNUC__ == 6 && __GNUC_MINOR__ > 2))
  /* do nothing*/
#elif !defined(_MSC_VER) || _MSC_VER < 1900
# define snprintf _snprintf
#endif


-----------------------------------------



---------------------------------------
***************************************
TO COMPILE CODEDWELLER WITH -std=gnu++11
***************************************

add winerror include here in networking.cpp

networking.cpp:
    //// Platform Specific Stuff ///////////////////////////////////////////////////

    #if defined(WIN32) || defined(WIN64)
    #include "winerror.h" // <--- line to add


in /CodeDweller:
g++ -std=gnu++11 -c *.cpp  //add -m32 if 32bit
ar rvs libCodedweller.a *.o


