uBLAS compile fail on sparse matrix debug code

Hi all,
I just write a simple program to test the efficiency of sparse matrix
operation in uBLAS and get the following error message on a FreeBSD
with gcc 2.95 :
!gmake 2>&1| tee /tmp/v446688/2g++ -c test.cpp -I.
-I/usr/local/include -Wall -g -O2 -march=i686 -pipe
-ftemplate-depth-30 -g3 -O0 -o test.o
g++ test.o -o a.out
test.o: In function `pair

Hi Zhang, you wrote:
I just write a simple program to test the efficiency of sparse matrix operation in uBLAS and get the following error message on a FreeBSD with gcc 2.95 :
!gmake 2>&1| tee /tmp/v446688/2g++ -c test.cpp -I. -I/usr/local/include -Wall -g -O2 -march=i686 -pipe -ftemplate-depth-30 -g3 -O0 -o test.o g++ test.o -o a.out test.o: In function `pair
* __copy_backward *, pair *, int>(pair *, pair *, pair *, random_access_iterator_tag, int *)': /usr/include/g++/stl_algobase.h (.gnu.linkonce.t.norm_inf__Q45boost7numeric5ublast11type_traits1ZUiRCUi+0x1 5): undefined reference to `boost::numeric::ublas::type_traits<unsigned int>::imag(unsigned int const &)' /usr/include/g++/stl_algobase.h
[snip more linker messages]
If I comment out the second prod() or use -DNDEBUG everything is ok. So I suspect the error is caused by debug code in sparse matrix prod operation.
here is the main code block:
I've stumbled across a similar problem some time ago and silently fixed it
in my code base. The following (slightly edited ;-) test compiles fine for
me:
----------
#include <iostream>
#include
participants (2)
-
jhr.walter@t-online.de
-
Zhang Le