When debugging https://github.com/rust-ndarray/ndarray/issues/1110, I found out that openblas provided by vcpkg is compiled with ilp64. I think the solution to this is to either add ilp64 support to cblas-sys, or better, build openblas from source using cmake, flang, and msvc.