[quote author=MaxPain link=topic=27887.msg175352#msg175352 date=1613227440]
There is no libgcc_s_dw2 in MinGW bin files, probably because its version for MacOS.
Maybe it's not in the bin directory, but it should exist somewhere, since it's linking it. Unless they provide an additional runtime package or similar.
And I did not understand what it means to static build SFML, after all, I'm already doing it.
You're link SFML and not building it. In order to build SFML, you need to get SFML's source code, generate a make file with CMake and build it.
One more thing: if I use -lsfml-*-s to link it static, it says "Undefined reference to *Some SFML thing*", if I read it correctly, it does not find the code itself.
When linking SFML statically, you also need to link SFML's dependencies (freetype, vorbis, flac, ogg, etc).
Personally, I highly recommend to build natively on Windows rather than cross-compilation, as it's usually easier to solve issues on a native setup rather than in a cross-compilation.