c++ - "error LINK2019: unresolved..." -


i'm trying compile test program using visual studio 2012 written in c++, program computes inverse of arbitrary matrix using armadillo linear algebra library. requires enable lapack in armadillo's config.h file , link libraries/dlls in project's properties (which i've done).

i'm compiling 64bit release i've downloaded suitable blas/lapack libraries here , have linked vs project against them. having done i'm still getting link errors whilst trying use armadillo's inv(...) method 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 give me slight indication i'm doing wrong? many in advance!

the examples provided armadillo should compile out of box. open project files in examples/example1_win32 folder. may want use them starting point code.

alternatively, site might useful: armadillo blas , lapack in 64 bit visual c++ projects

using 64 bit lapack , blas considerably faster 32 bit versions. may want using intel mkl, provides high-speed multi-core implementation of lapack.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -