Boost logo

Ublas :

Subject: [ublas] example usage of coordinate_matrix fails on Ubuntu 11.04 (amd_64)
From: Douglas Bates (bates_at_[hidden])
Date: 2011-06-07 14:20:18


The simple test program for the numeric_matrix template, shown in the
Example section of

http://www.boost.org/doc/libs/1_46_1/libs/numeric/ublas/doc/matrix_sparse.htm#coordinate_matrix

does not compile on an Ubuntu 11.04 (amd_64) system

$ uname -a
Linux bates3 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC
2011 x86_64 x86_64 x86_64 GNU/Linux

for which the default C++ compiler is

$ g++ --version
g++ (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2

I enclose a transcript. I first encountered this with boost version
1.42.0 from which the Ubuntu packages for 11.04 were prepared and then
tried boost 1.46.1, encountering the same errors.

I imagine this has been reported before but I couldn't find the
archive for this list (the link I tried is incorrect).