I installed MinGW and I just want to link my program into a single EXE file. I want to be able to give this EXE file to someone without having to worry about all the libgcc_s_d
You can use -static option when linking with libraries, and for libgcc and libstdc++ use the following:
-static
-static-libgcc -static-libstdc++