I have a trivial \"Hello world\" C++ program that is compiled to 500kB executable by MinGW g++ compiler under Win XP. Some say that is caused by iostream li
Flags to use:
-s
-lstdc++_s
libstdc++.dll
-Os
By default mingw static links to libstdc++.a on Windows.
libstdc++.a
Note that the lstdc++_s flag is only in MinGW with GCC > 4.4, I believe.
lstdc++_s