Boost logo

Boost Users :

From: Daniel L Elliott (dan_elliott_at_[hidden])
Date: 2004-11-30 19:06:37


Hello,

I am completely stumped. Using the cvs head 1.32 version of boost with the
following program:

#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 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