|
Ublas : |
From: Michele De Stefano (micdestefano_at_[hidden])
Date: 2007-09-05 10:04:38
Thank you Jesse.
Kresmir had already answered the same and all works.
Anyway, thank you.
On 9/5/07, Jesse Manning <manning.jesse_at_[hidden]> wrote:
> the include files:
> atlas/clapack.h
> atlas/cblas.h
>
> come with the atlas source that you must download separately. After you
> have downloaded the atlas package you should be able to change the lines
> above to point to the cblas and clapack header files that came with atlas.
> You will also need to tell the compiler where the atlas lib file (either
> static or dynamic) is so it can successfully link against it if you are
> trying to use the atlas bindings.
>
>
> On 8/22/07, Michele De Stefano <mdestefano_at_[hidden]> wrote:
> > Good morning to all.
> > I'm trying to use the bindings for the first time (I frequently use
> > uBLAS without bindings).
> >
> > I've downloaded boost-bindings-20060430.tar.gz from the author's site
> > and I've tried
> > to build the example present at
> >
> http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?Linear_Algebra_With_UBLAS
> > but it does not compile !!!
> >
> > The first error I receive is that the compiler (gcc 4.1.2) cannot find
> > atlas/clapack.h or atlas/cblas.h.
> > I've tried to change the corresponding #includes with atlas/clapack.hpp
> > and atlas/cblas.hpp. Then I've added
> > -I/usr/local/include/boost/numeric/bindings (the
> directory where the
> > bindings are) to the compilation command
> > but I still receive several compilation errors.
> >
> > The command I give is
> >
> > g++ -ansi -pedantic -Wall -O3
> > -I/usr/local/include/boost/numeric/bindings main.cpp -o
> main -latlas >&
> > out.txt
> >
> > Has someone an idea ?
> >
> > I've cut and pasted the first lines contained into out.txt (this file is
> > full of compilation errors ... I thought useless to cut and paste all
> > the lines).
> >
> > In file included from
> >
> /usr/local/include/boost/numeric/bindings/atlas/cblas1.hpp:22,
> > from
> >
> /usr/local/include/boost/numeric/bindings/atlas/cblas.hpp:20,
> > from
> >
> /usr/local/include/boost/numeric/bindings/atlas/cblas_inc.hpp:32,
> > from
> >
> /usr/local/include/boost/numeric/bindings/atlas/cblas_enum.hpp:21,
> > from
> >
> /usr/local/include/boost/numeric/bindings/atlas/clapack.hpp:27,
> > from main.cpp:1:
> >
> /usr/local/include/boost/numeric/bindings/traits/type_traits.hpp:27:
> > template
> > with C linkage
> >
> /usr/local/include/boost/numeric/bindings/traits/type_traits.hpp:
> In
> > function
> > `const dcomplex_t*
> boost::numeric::bindings::traits::complex_ptr(const
> > boost::numeric::bindings::traits::complex_d*)':
> >
> /usr/local/include/boost/numeric/bindings/traits/type_traits.hpp:56:
> > declaration
> > of C function `const dcomplex_t*
> > boost::numeric::bindings::traits::complex_ptr(const
> > boost::numeric::bindings::traits::complex_d*)'
> conflicts with
> >
> /usr/local/include/boost/numeric/bindings/traits/type_traits.hpp:55:
> > previous
> > declaration `const fcomplex_t*
> > boost::numeric::bindings::traits::complex_ptr(const
> > boost::numeric::bindings::traits::complex_f*)' here
> >
> /usr/local/include/boost/numeric/bindings/traits/type_traits.hpp:
> In
> > function
> > `fcomplex_t*
> >
> >
> boost::numeric::bindings::traits::complex_ptr(boost::numeric::bindings::traits::complex_f*)':
> >
> /usr/local/include/boost/numeric/bindings/traits/type_traits.hpp:58:
> > declaration
> > of C function `fcomplex_t*
> >
> >
> boost::numeric::bindings::traits::complex_ptr(boost::numeric::bindings::traits::complex_f*)
> > ' conflicts with
> >
> > _______________________________________________
> > ublas mailing list
> > ublas_at_[hidden]
> > http://lists.boost.org/mailman/listinfo.cgi/ublas
> >
>
>
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
>
>