GLFW on MSYS2 on Windows 10 and vulkan

I’m not familiar enough with MinGW to help you here, and would recommend using Visual Studio compiler for Windows if you can.

The if statement if (!vkCreateWin32SurfaceKHR) will not be entered if vkCreateWin32SurfaceKHR is non-zero, so it’s likely you’ve made an error in your debugging.