title: "error LINK2019: unresolved..."
body: <p>I'm trying to compile a test program using Visual Studio 2012 written in C++, the program computes the inverse of an arbitrary matrix using the <a href="http://arma.sourceforge.net/" rel="nofollow">Armadillo linear algebra</a> library. This requires that you enable LAPACK in Armadillo's <code>config.h</code> file and link to the libraries/dlls in the project's properties (which I've done).</p>
  
  <p>I'm compiling for a 64bit release so I've downloaded the suitable BLAS/LAPACK libraries from <a href="http://icl.cs.utk.edu/lapack-for-windows/lapack/" rel="nofollow">here</a> and have linked the VS project against them. Having done all this I'm still getting link errors whilst trying to use Armadillo's <code>inv(...)</code> method as follows:</p>
  
  <pre><code>1&gt;Matrix.obj : error LNK2019: unresolved external symbol dgetrf_ referenced in function "public: static double __cdecl arma::auxlib::det_lapack&lt;double&gt;(class arma::Mat&lt;double&gt; const &amp;,bool)" (??$det_lapack@N@auxlib@arma@@SANAEBV?$Mat@N@1@_N@Z)
  1&gt;Matrix.obj : error LNK2019: unresolved external symbol dgetri_ referenced in function "void __cdecl arma::lapack::getri&lt;double&gt;(long *,double *,long *,long *,double *,long *,long *)" (??$getri@N@lapack@arma@@YAXPEAJPEAN00100@Z)
  </code></pre>
  
  <p>Can anyone give me a slight indication as to what I'm doing wrong? Many thanks in advance!</p>