-
When i try to use dsaupd_c and dseupd_c from arpack-ng in a c++ file, linking:
and linking these directories in the compilation process:
I get this error, just for dseupd_c:
If i use fortran, with a different program, it works fine. In that case i link this directory:
I assumed the issue was the lack of ISO_C_BINDING compilation. What i usually do to compile arpack is: Inside the arpack-ng folder, create a dir called build and move inside that folder:
Set the installation:
Build the libraries by running just:
and then install it by running:
We have installed the shared libraries, we are going to need the static library also, so execute the following commands:
And it works However in the arpack-ng i find: [reminder 1]
And it gives me an error i will attach at the end. In particular, if i run ./configure it says:
However when I use those compilers, they work. If I run:
It says:
And if I run:
It says:
All these compiler issue don't appear if I just go for the steps i wrote at the beginning and run the program. I tried to write [reminder 1] outside the build file i already made:
If i try to write:
It says:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 12 replies
-
To use Make sure you start from clean/empty directory, your env is correct (with intel: need to run sh script to set env before using compilers IIRC) and set ICB option at configure time. If using MKL: https://github.com/opencollab/arpack-ng#using-mkl-instead-of-blas--lapack |
Beta Was this translation helpful? Give feedback.
-
please don't share screenshoots, they are terrible for accessibility and search |
Beta Was this translation helpful? Give feedback.
-
Following these steps:
This is the output of make:
Dunno if it's an issue, even though it's not about linked libraries, i still don't know if t's ok to run tests with it. About cmakelist.txt, I included:
From the line you linked I see:
If I try to paste stuff like that, i need to know where it is. It really reminds me on how i link on fortran:
However, links are differents for dynamic libraries in mkl (even though that's not an issue of mkl) In fortran I was building static libraries too, such as:
So, if I try:
It says:
And if I add that library to the cmake and run it:
|
Beta Was this translation helpful? Give feedback.
-
Ok, so in the end I just needed to add this library.:
It seems developers didn't spot it. I went through all automatically generated makefiles to find this piece was missing |
Beta Was this translation helpful? Give feedback.
Ok, so in the end I just needed to add this library.:
It seems developers didn't spot it. I went through all automatically generated makefiles to find this piece was missing