openblas-src icon indicating copy to clipboard operation
openblas-src copied to clipboard

`error LNK2019: unresolved external symbol` when using `vcpkg`/Windows

Open Danvil opened this issue 7 months ago • 2 comments

When I followed the instructions to install openblas with vcpkg it produces a DLL which is about 1.7 MB and misses most of the functions. For example dgetrf_, sgetrf_ and many other are missing. This leads to linker errors with ndarray-linalg. See this issue for more information .

When I download the binary package from the OpenBLAS github I get a DLL which is about 50 MB. If I replace the DLL compiled via vcpkg with the downloaded one linking is successful and it works.

Danvil avatar Jan 20 '24 19:01 Danvil

This is mainly due to the OpenBLAS does not compile most of LAPACK functions except for rewritten by OpenBLAS project if Fortran compiler not found.

termoshtt avatar Feb 03 '24 07:02 termoshtt

How do I have to configure vcpkg so that it finds a Fortran compiler?

Danvil avatar Feb 12 '24 22:02 Danvil