I am using TDM-GCC64 but I am in no way a MinGW expert. In fact, it is the first Windows project since a couple of years.
> RUNTIME_LIBS=static
That's one of the things I tried. However, I am not sure, if this really happening, as the binaries do not look as different as I think they should (only three differences in my binary). Maybe I should have a closer look at the building process with gcc on windows.
Is it enough to build wxWidgets as
Code: Select all
mingw32-make -f makefile.gcc SHARED=0 UNICODE=1 BUILD=release RUNTIME_LIBS=static
and then using
Code: Select all
g++ $(shell wx-config --debug=no --static=yes --cxxflags)
respectively --ldflags ... to achive a fully static build? Not sure if --static even necessary using CodeLite, which uses the $WXCFG environment variable to determine wx-config settings.....
> Are all necessary DLLs in the same folder
As for the DLL build, I put the DLLs in the %Sysroot%\System32 folder, just as the binary.
* DEFINITION: Computer - A device designed to speed and automate errors.