|
Ublas : |
From: Michele De Stefano (micdestefano_at_[hidden])
Date: 2007-08-22 08:49:10
Good morning to all.
I've re-posted this message because, before, I wasn't registered.
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