what can i do about this MSYS/minGW environment problem?
You don't need this environment to compile wxWidgets. Instead, do the following:
1.) Make sure the PATH environment variable is clean and does not point to any GCC / MSYS / MINGW installation folders!
2.) Install the TDM GCC compiler
3.) Go into the wxWidgets source file folder root (the one, where e.g. configure.in is in)
4.) Open a command prompt there and do:
set PATH=[PATH_TO_TDM_GCC_BIN_(!)_FOLDER];%PATH%
cd build\msw
mingw32-make -f makefile.gcc CXXFLAGS="-fno-keep-inline-dllexport" BUILD=release SHARED=1 MONOLITHIC=1 USE_XRC=1 USE_OPENGL=1 UNICODE=1 clean
mingw32-make -f makefile.gcc CXXFLAGS="-fno-keep-inline-dllexport" BUILD=release SHARED=1 MONOLITHIC=1 USE_XRC=1 USE_OPENGL=1 UNICODE=1
Do it exactly like this (of course adapt the path to the TDM GCC bin folder) and it will work.
but, i still get debug configuration warnings when i try to set up a new wxWidgets project.
To build the debug version of wxWidgets, do the same as I said before, simply removing this line:
mingw32-make -f makefile.gcc CXXFLAGS="-fno-keep-inline-dllexport" BUILD=release SHARED=1 MONOLITHIC=1 USE_XRC=1 USE_OPENGL=1 UNICODE=1 clean
...and changing this line:
mingw32-make -f makefile.gcc CXXFLAGS="-fno-keep-inline-dllexport" BUILD=release SHARED=1 MONOLITHIC=1 USE_XRC=1 USE_OPENGL=1 UNICODE=1
...into:
mingw32-make -f makefile.gcc CXXFLAGS="-fno-keep-inline-dllexport" BUILD=debug SHARED=1 MONOLITHIC=1 USE_XRC=1 USE_OPENGL=1 UNICODE=1
However, you might not need this until you want to debug into wxWidgets code, too (which you normally don't). Instead, you could also simply use the same wx (!) flags for the debug target as for the release target, namely #defines and libs.
EDIT: ...for the record: All this information and even more you will also find in our Wiki.
finally, i have got it working...
but do i need to execute this line of code:
mingw32-make -f makefile.gcc CXXFLAGS="-fno-keep-inline-dllexport" BUILD=debug SHARED=1 MONOLITHIC=1 USE_XRC=1 USE_OPENGL=1 UNICODE=1 clean
yes :)