LAPACK issues
Devoev opened this issue · 1 comments
Devoev commented
I can't get LAPACK to work with the template. I enabled the
INCLUDE(${CMAKE_MODULE_PATH}/SetUpLAPACK.cmake)
line, and managed to get rid of the errors, so I think Cmake can find LAPACK. But I always get the error, that 'dgesv' (a lapack function) is an undefined reference. Do I have to enable any other settings or modify the compiler flags?
I'm using the MSYS2 LAPACK installation and it works fine from the command line.
Devoev commented
Thanks for the answer! Where can I find your changes, or where is the
'lib1' folder? Are you talking about another repo? Because I can't find
anything.
…On 22/07/2022 10:53, Lucas Gasparino wrote:
I'll give it a check, but my guess is that you are not linking the
library, just finding it. In any case, I am modifying this to include
a basic external linking template, so you'll be able to copy from
there. The project is rather new, so new functionalities are still
being added :D
For the time being, check what I did with folder 'lib1': it is a
shared library that gets linked to 'app1'. This is in C++, but the
CMake idea for it is the same in Fortran.
Anyway, I might end up just adding LAPACK to the project since it's
such a ubiquitous library to have, so keep an eye out for it...
—
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AG45ZFWRHKHR4LIUOSBW7WTVVJOO3ANCNFSM53DP6ONQ>.
You are receiving this because you authored the thread.Message ID:
***@***.***>