Program can’t find libgcc_s_dw2-1.dll [duplicate]

The link commandline argument -static-libgcc should work. Another variant you could try is plain -static.

If you don’t want to worry about this, and still want to redistribute your binary, just copy the relevant dll from MinGW’s bin directory and place it alongside your executable. This is common practice and works as advertised.

Leave a Comment