Boost logo

Ublas :

From: Preben Holm (preben_at_[hidden])
Date: 2007-11-01 06:36:50


Hi,

It seems you're not linking with the lapack library.

You need to install a lapack library (this could be the reference
lapack, atlas-lapack or a special optimized library for your architecture).

And then set up your linker to use the library.

Best regards,
Preben Holm

Tunc Bahcecioglu skrev:
> Hi,
> I am using VSNET 2005 and trying to use lapack with the bindings. But I
> get the following error:
> Error 4 error LNK2001: unresolved external symbol
> _dgesv boostLapackTry1.obj
>
> I put the lapack.lib,blas.lib and matgen.lib to the additional dependencies.
> I am trying to compile the following cods:
>
>
> #include
>
> <boost/numeric/bindings/lapack/gesv.hpp>
>
> #include
>
> <boost/numeric/ublas/matrix.hpp>
>
> #include
>
> <boost/numeric/bindings/traits/ublas_matrix.hpp>
>
> namespace
>
> ublas = boost::numeric ::ublas;
>
> namespace
>
> lapack = boost::numeric ::bindings::lapack;
>
> int
>
> main()
>
> {
>
> ublas::matrix<double, ublas::column_major> A(3,3), B (3,1);
>
> lapack::gesv(A, B);
>
> return 0;
>
> }
>
> I am a newbie to both libraries. Can one tell me what I am missing here.
> Help appreciated.
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas