$ 0 0 MSVC and MinGW libraries are incompatible. MSYS2 installs MinGW libs. Use a different package manager, e.g. vcpkg.