I have a question regarding the use of Armadillo.
I am using Ubuntu 12.10 and the gcc compiler in Code :: Blocks. I installed LAPACK and BLAS using the synaptic package manager. I also once installed Armadillo using the synaptic package manager once manually using CMake. CMake discovered the LAPACK and BLAS libraries when creating configurations for compiling armadillos. In addition, I linked the BLAS and LAPACK libraries in Code :: Blocks under “Build Options” → “Linker”.
However, when I want to create my project, I get an error message:
In function `void arma::lapack::getrf<double>(int*, int*, double*, int*, int*, int*)':| /usr/include/armadillo_bits/lapack_wrapper.hpp|41|undefined reference to `wrapper_dgetrf_'|
This means that the armadillo cannot find LAPACK, but what did I do wrong?
I also tore the corresponding lines in the armadillo_bits / config.hpp file so that it looked like this:
#if !defined(ARMA_USE_LAPACK) //
The error occurs when I try to set up a matrix with integers, therefore
Mat<int> element_nodes;
I would be grateful for the helpful answers. I searched the internet for several hours. Also, if you need more source code, let me know.
source share