To compile the example lu_solve.cc of the MTL, the Makefile `makes' the
commands (gcc version 2.95.4 20011002 (Debian prerelease))
$ g++ -DHAVE_CONFIG_H -I. -I. -I../../mtl -I../..
-ftemplate-depth-30 -Wall -c lu_solve.cc
$ g++ -ftemplate-depth-30 -Wall -o lu_solve lu_solve.o -lm
Provided we add the `-pedantic' compiler option, we get
$ g++ -DHAVE_CONFIG_H -I. -I. -I../../mtl -I../..
-ftemplate-depth-30 -Wall -c lu_solve.cc -pedantic
In file included from
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/complex:7,
from ../../mtl/mtl_complex.h:1,
from ../../mtl/matrix_traits.h:4,
from ../../mtl/matrix.h:44,
from lu_solve.cc:3:
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/std/complext.h:314:
warning: declaration of `hypot(double, double)' throws different exceptions
/usr/include/bits/mathcalls.h:150: warning: previous declaration here
../../mtl/matrix_implementation.h: In method
`mtl::row_matrix<mtl::gen_dense2D<double,mtl::gen_banded_view_offset<0,0>,0,0>,mtl::gen_banded_indexer<mtl::row_orien,0,0,unsigned
int>
>::row_matrix<mtl::row_matrix<mtl::gen_dense2D<double,mtl::gen_rect_offset<0,0>,0,0>,mtl::gen_rect_indexer<mtl::row_orien,0,0,unsigned
int> > >(int, int, const
mtl::row_matrix<mtl::gen_dense2D<double,mtl::gen_rect_offset<0,0>,0,0>,mtl::gen_rect_indexer<mtl::row_orien,0,0,unsigned
int> > &)':
../../mtl/matrix_implementation.h:1141: instantiated from
`mtl::triangle_matrix<mtl::row_matrix<mtl::gen_dense2D<double,mtl::gen_banded_view_offset<0,0>,0,0>,mtl::gen_banded_indexer<mtl::row_orien,0,0,unsigned
int>
>,mtl::unit_upper__>::triangle_matrix<mtl::row_matrix<mtl::gen_dense2D<double,mtl::gen_rect_offset<0,0>,0,0>,mtl::gen_rect_indexer<mtl::row_orien,0,0,unsigned
int> > >(const
mtl::row_matrix<mtl::gen_dense2D<double,mtl::gen_rect_offset<0,0>,0,0>,mtl::gen_rect_indexer<mtl::row_orien,0,0,unsigned
int> > &)'
../../mtl/lu.h:72: instantiated from
`mtl::lu_factor<mtl::row_matrix<mtl::gen_dense2D<double,mtl::gen_rect_offset<0,0>,0,0>,mtl::gen_rect_indexer<mtl::row_orien,0,0,unsigned
int> >, mtl::dense1D<int,0>
>(mtl::row_matrix<mtl::gen_dense2D<double,mtl::gen_rect_offset<0,0>,0,0>,mtl::gen_rect_indexer<mtl::row_orien,0,0,unsigned
int> > &, mtl::dense1D<int,0> &)'
../../mtl/lu.h:114: instantiated from here
../../mtl/matrix_implementation.h:572: no match for call to
`(mtl::dimension<int,0,0>) (int &, int &)'
If another version of the compiler is used (gcc version 3.0.4), the
compiler's moan is even larger, but at the end of it we also get:
lu_solve.cc:62: instantiated from here
../../mtl/matrix_implementation.h:572: no match for call to
`(mtl::dimension<int, 0, 0>) (int&, int&)'
Best,
Ramón.
--
----------------------------------------------------
Ramón Casero Cañas
[email protected]
Ing. de Telecomunicación.
Universidad Carlos III de Madrid
----------------------------------------------------
_______________________________________________
This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.