[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gcc-3.4.0 && std::valarray compile problems?:REPOST
From: |
STH |
Subject: |
gcc-3.4.0 && std::valarray compile problems?:REPOST |
Date: |
Tue, 27 Apr 2004 11:38:15 -0400 |
User-agent: |
KNode/0.7.6 |
This didn't go through the last time. ????
I've been haveing trouble compileing the code found at this URL:
http://www.research.att.com/~bs/matrix.c
You can navigate there from here:
http://www.research.att.com/~bs/3rd_code.html
Chapter 22: * pg 668 Slices and matrix example (sec22.4.5,224.6,22.6.2)
I'd be grateful if someone would try to compile with 3.4.0 on a Linux box.
I'm running SuSE 9.0 on intel. The same compile works with the stock gcc.
The following is the whole sad story:
g++ matrix.cc
matrix.cc: In instantiation of `Slice_iter<double>':
matrix.cc:145: instantiated from here
matrix.cc:36: error: template-id `operator==<>' for `bool operator==(const
Slice_iter<double>&, const Slice_iter<double>&)' does not match any
template declaration
matrix.cc:37: error: template-id `operator!=<>' for `bool operator!=(const
Slice_iter<double>&, const Slice_iter<double>&)' does not match any
template declaration
matrix.cc:38: error: template-id `operator< <>' for `bool operator<(const
Slice_iter<double>&, const Slice_iter<double>&)' does not match any
template declaration
matrix.cc: In instantiation of `Cslice_iter<double>':
matrix.cc:146: instantiated from here
matrix.cc:91: error: template-id `operator==<>' for `bool operator==(const
Cslice_iter<double>&, const Cslice_iter<double>&)' does not match any
template declaration
matrix.cc:92: error: template-id `operator!=<>' for `bool operator!=(const
Cslice_iter<double>&, const Cslice_iter<double>&)' does not match any
template declaration
matrix.cc:93: error: template-id `operator< <>' for `bool operator<(const
Cslice_iter<double>&, const Cslice_iter<double>&)' does not match any
template declaration
matrix.cc: In function `bool operator==(const Slice_iter<T>&, const
Slice_iter<T>&) [with T = double]':
matrix.cc:54: instantiated from `bool operator!=(const Slice_iter<T>&,
const Slice_iter<T>&) [with T = double]'
matrix.cc:299: instantiated from here
matrix.cc:15: error: `std::slice Slice_iter<double>::s' is private
matrix.cc:46: error: within this context
matrix.cc:15: error: `std::slice Slice_iter<double>::s' is private
matrix.cc:46: error: within this context
matrix.cc:15: error: `std::slice Slice_iter<double>::s' is private
matrix.cc:46: error: within this context
matrix.cc:15: error: `std::slice Slice_iter<double>::s' is private
matrix.cc:46: error: within this context
matrix.cc:16: error: `size_t Slice_iter<double>::curr' is private
matrix.cc:46: error: within this context
matrix.cc:16: error: `size_t Slice_iter<double>::curr' is private
matrix.cc:46: error: within this context
matrix.cc: In function `bool operator==(const Cslice_iter<T>&, const
Cslice_iter<T>&) [with T = double]':
matrix.cc:108: instantiated from `bool operator!=(const Cslice_iter<T>&,
const Cslice_iter<T>&) [with T = double]'
/opt/org/gnu/gcc-3.4.0/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/bits/stl_numeric.h:144:
instantiated from `_Tp std::inner_product(_InputIterator1, _InputIterator1,
_InputIterator2, _Tp) [with _InputIterator1 = Cslice_iter<double>,
_InputIterator2 = double*, _Tp = double]'
matrix.cc:231: instantiated from here
matrix.cc:73: error: `std::slice Cslice_iter<double>::s' is private
matrix.cc:100: error: within this context
matrix.cc:73: error: `std::slice Cslice_iter<double>::s' is private
matrix.cc:100: error: within this context
matrix.cc:73: error: `std::slice Cslice_iter<double>::s' is private
matrix.cc:100: error: within this context
matrix.cc:73: error: `std::slice Cslice_iter<double>::s' is private
matrix.cc:100: error: within this context
matrix.cc:74: error: `size_t Cslice_iter<double>::curr' is private
matrix.cc:100: error: within this context
matrix.cc:74: error: `size_t Cslice_iter<double>::curr' is private
matrix.cc:100: error: within this context
--
.
- gcc-3.4.0 && std::valarray compile problems?:REPOST,
STH <=