title: Armadillo + BLAS + LAPACK: Linking error?
body: <p>When I try to compile example1.cpp that comes with Armadillo 2.4.2, I keep getting the following linking error:</p>
  
  <pre><code>/tmp/ccbnLbA0.o: In function `double arma::blas::dot&lt;double&gt;(unsigned int, double const*, double const*)':
  main.cpp:(.text._ZN4arma4blas3dotIdEET_jPKS2_S4_[double arma::blas::dot&lt;double&gt;(unsigned int, double const*, double const*)]+0x3b): undefined reference to `wrapper_ddot_'
  /tmp/ccbnLbA0.o: In function `void arma::blas::gemv&lt;double&gt;(char const*, int const*, int const*, double const*, double const*, int const*, double const*, int const*, double const*, double*, int const*)':
  main.cpp:(.text._ZN4arma4blas4gemvIdEEvPKcPKiS5_PKT_S8_S5_S8_S5_S8_PS6_S5_[void arma::blas::gemv&lt;double&gt;(char const*, int const*, int const*, double const*, double const*, int const*, double const*, int const*, double const*, double*, int const*)]+0x68): undefined reference to `wrapper_dgemv_'
  /tmp/ccbnLbA0.o: In function `void arma::blas::gemm&lt;double&gt;(char const*, char const*, int const*, int const*, int const*, double const*, double const*, int const*, double const*, int const*, double const*, double*, int const*)':
  main.cpp:(.text._ZN4arma4blas4gemmIdEEvPKcS3_PKiS5_S5_PKT_S8_S5_S8_S5_S8_PS6_S5_[void arma::blas::gemm&lt;double&gt;(char const*, char const*, int const*, int const*, int const*, double const*, double const*, int const*, double const*, int const*, double const*, double*, int const*)]+0x7a): undefined reference to `wrapper_dgemm_'
  collect2: ld returned 1 exit status
  </code></pre>
  
  <p>Can someone help? I manually installed</p>
  
  <ul>
  <li>latest version of BLAS</li>
  <li>lapack-3.4.0</li>
  <li>boost-1.48.0</li>
  <li>latest version of ATLAS</li>
  </ul>
  
  <p>I'm using Ubuntu 11.04 on the MacBook Pro 7,1 model </p>