Boost logo

Boost Users :

From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2004-12-06 02:24:12


Daniel L Elliott wrote:
> Hello,
>
> I am completely stumped. Using the cvs head 1.32 version of boost with the
> following program:

This is again the old include-policy problem. Previously the headers of
ublas were not self-contained. This has been fixed but only on a branch
(and thus not in the 1.32 release). I plan to merge this branch also to
the HEAD.

For now, you just need to include storage.hpp before you include lu.hpp.
In that case, on line 24 of lu.hpp will it recognise unbounded_array
(which is defined in storage.hpp)

>
> #include<lu.hpp>
> #include<vector.hpp>
> #include<io.hpp>
>
> #include<iostream>
>
> using std::cout;
> using std::endl;
> using namespace boost::numeric::ublas;
>
> int main(){
>
> // create a permutation matrix
> permutation_matrix<size_t> P( size );
> // default contructions gives the identity-permutation
>
> cout << P << endl;
>
> return 0;
> }
>
> I get the following errors:
> g++ -c -I.
> -I/s/chopin/a/grad/dane/thesis/code/boost-1.32/include/boost-1_32/boost/numeric/ublas
> -Wall -g3 -I.
> -I/s/chopin/a/grad/dane/thesis/code/boost-1.32/include/boost-1_32/boost/numeric/ublas
> -o permutationTest.o permutationTest.cpp
> In file included from permutationTest.cpp:1:
> /s/chopin/a/grad/dane/thesis/code/boost-1.32/include/boost-1_32/boost/numeric/ublas/lu.hpp:24:
> error: parse
> error before `,' token
> /s/chopin/a/grad/dane/thesis/code/boost-1.32/include/boost-1_32/boost/numeric/ublas/lu.hpp:29:
> error: `
> vector_type' is not a class or namespace
> /s/chopin/a/grad/dane/thesis/code/boost-1.32/include/boost-1_32/boost/numeric/ublas/lu.hpp:29:
> error: `
> size_type' is not a class or namespace
> /s/chopin/a/grad/dane/thesis/code/boost-1.32/include/boost-1_32/boost/numeric/ublas/lu.hpp:29:
> error: `
> vector_type' fails to be a typedef or built in type
> /s/chopin/a/grad/dane/thesis/code/boost-1.32/include/boost-1_32/boost/numeric/ublas/lu.hpp:29:
> error: ISO
> C++ forbids declaration of `size_type' with no type
> /s/chopin/a/grad/dane/thesis/code/boost-1.32/include/boost-1_32/boost/numeric/ublas/lu.hpp:29:
> error: template
> declaration of `typedef int boost::numeric::ublas::size_type'
> /s/chopin/a/grad/dane/thesis/code/boost-1.32/include/boost-1_32/boost/numeric/ublas/lu.hpp:29:
> confused by earlier errors, bailing out
>
> Any ideas as to what might be wrong here?
>
> Thank you.
>
> -- dan elliott
> **************************
> Dan Elliott
> 402-210-6429 (me)
> or
> 402-210-6735 (amy)
> dan_elliott_at_[hidden]
> **************************
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net