Works for me out of the box on MSYS2 GCC, without any compiler flags. Don't try to use MinGW with MSVC's headers, get a version of MinGW that directly supports headers you need.
↧