MTL / ITL and GCC 4.1.1

Erlend Davidson <[email protected]> Sun, 21 Jan 2007 12:39:13 +0000
Newsgroups gmane.comp.lib.mtl.devel
Message-ID <[email protected]>
Is it possible to use MTL and ITL with gcc 4.1.1.  I want to use the 
Conjugate Gradient (cg) method, but currently I can't even get the 
example to compile.

Here's an example of the kind of errors I get:

../itl/include/itl/itl.h: In member function 'bool 
itl::noisy_iteration<Real>::finished(const Vector&)':
../itl/include/itl/itl.h:221: error: 'i' was not declared in this scope
../itl/include/itl/itl.h:221: error: 'max_iter' was not declared in this 
scope
../itl/include/itl/itl.h:224: error: 'error' was not declared in this scope
../itl/include/itl/itl.h:227: error: 'i' was not declared in this scope
../itl/include/itl/itl.h:227: error: there are no arguments to 'resid' 
that depend on a template parameter, so a declaration of 'resid' must be 
available
../itl/include/itl/itl.h:227: error: (if you use '-fpermissive', G++ 
will accept your code, but allowing the use of an undeclared name is 
deprecated)
../itl/include/itl/itl.h: In member function 'bool 
itl::noisy_iteration<Real>::finished(const Real&)':
../itl/include/itl/itl.h:240: error: 'i' was not declared in this scope
../itl/include/itl/itl.h:240: error: 'max_iter' was not declared in this 
scope
../itl/include/itl/itl.h:243: error: 'error' was not declared in this scope
../itl/include/itl/itl.h:246: error: 'i' was not declared in this scope
../itl/include/itl/itl.h:246: error: there are no arguments to 'resid' 
that depend on a template parameter, so a declaration of 'resid' must be 
available
../itl/include/itl/itl.h: In member function 'bool 
itl::noisy_iteration<Real>::finished(const std::complex<_Up>&)':
...

I would greatly appreciate some help / feedback on this.

Thank you,

Erlend
_______________________________________________
This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/