-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lapack dependency on Windows #958
Comments
Something like this should work I think, fpm test --link-flag "-LC:\\lib" or by setting the environmental variable FPM_LDFLAGS="-LC:\\lib
fpm test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying FPM on the project at https://github.com/gha3mi/foreig I don't get an executable because it cannot find Lapack. I get errors such as
as detailed in gha3mi/foreig#1. (Following the advice given did not solve the problem.) I have compiled Lapack and BLAS on my PC to create
.a
files, and the following command creates an executable:gfortran build\dependencies\kinds\src\kinds.f90 src\foreig.f90 test\test1.f90 liblapack.a librefblas.a
I have copied the
.a
files toc:\lib
, and the following command also works:gfortran build\dependencies\kinds\src\kinds.f90 src\foreig.f90 test\test1.f90 -LC:\\lib -llapack -lrefblas
How do I tell FPM to look in c:\lib for needed libraries?
The text was updated successfully, but these errors were encountered: