-
Notifications
You must be signed in to change notification settings - Fork 1
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
How to link Lapack on Windows? #1
Comments
@Beliavsky, thank you for your report. I have updated the [install]
library = true I suggest you remove the fpm install --prefix . Alternatively, you can set the compiler and flags (for example as follows): fpm install --compiler gfortran --flag "-llapack" --prefix . I have tested this on my Linux system. You can also use this module as an fpm dependency in your project without installing it: [dependencies]
foreig = {git="https://github.com/gha3mi/foreig.git"} Please let me know if you can run the test file using fpm: fpm @gfortran or fpm @ifort You can modify the compiler flags for this test in the response files |
@Beliavsky, If you need to configure the paths, you can utilize the following command: fpm test --compiler gfortran --flag "-LC:\\lib -llapack -lrefblas" To set lapack and blas in the fpm.toml file, you can do so by adding the following lines. However, I'm not entirely sure how to set the path: [build]
link = ["blas", "lapack"] I hope that it can solve the problem on Windows. However, I do not have access to a Windows system to test it. |
Thanks for your project. Trying it on Windows, I get the error below. How am I supposed to link with Lapack?
The text was updated successfully, but these errors were encountered: