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 Armadillo linear algebra library. This requires that you enable LAPACK in Armadillo's config.h
file and link to the libraries/dlls in the project's properties (which I've done).
I'm compiling for a 64bit release so I've downloaded the suitable BLAS/LAPACK libraries from here and have linked the VS project against them. Having done all this I'm still getting link errors whilst trying to use Armadillo's inv(...)
method as follows:
1>Matrix.obj : error LNK2019: unresolved external symbol dgetrf_ referenced in function "public: static double __cdecl arma::auxlib::det_lapack<double>(class arma::Mat<double> const &,bool)" (??$det_lapack@N@auxlib@arma@@SANAEBV?$Mat@N@1@_N@Z)
1>Matrix.obj : error LNK2019: unresolved external symbol dgetri_ referenced in function "void __cdecl arma::lapack::getri<double>(long *,double *,long *,long *,double *,long *,long *)" (??$getri@N@lapack@arma@@YAXPEAJPEAN00100@Z)
Can anyone give me a slight indication as to what I'm doing wrong? Many thanks in advance!