Linking BLAS/Lapack or ACML with Armadillo in Ubuntu

Hi!
Initially I installed BLAS, Lapack, and ATLAS but the matrix multiplication didn't work, it gave me this errors:


/usr/local/include/armadillo_bits/blas_wrapper.hpp|79|undefined reference to `wrapper_dgemv_'|

/usr/local/include/armadillo_bits/blas_wrapper.hpp|114|undefined reference to `wrapper_dgemm_'|



And now after I installed ACML I have the same problem.
This is my C++ code:
1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>
#include "armadillo"
using namespace arma;
using namespace std;
int main()
  {
 mat A = "1 2;3 4;5 6";
 mat B  = "2 4 8;2 4 8";
 mat C= A*B;
  cout<<C<<"\n";
  return 0;
} 


Can someone help me make this work?
Last edited on

Remove Ubuntu's Armadillo package and manually install the official package from:
http://arma.sourceforge.net/download.html

You will need Cmake installed beforehand (the Ubuntu CMake package is fine).

Ubuntu 12.04 will have the fixed version of Armadillo.
Topic archived. No new replies allowed.