If you are using MingW to compile C++ code on Windows, you may like to add the options -static-libgcc
and -static-libstdc++
to link the C and C++ standard libraries statically and thus remove the need to carry around any separate copies of those. Version management of libraries is a pain in Windows, so I’ve found this approach the quickest and cleanest solution to creating Windows binaries.