Re: MTL / ITL and GCC 4.1.1
Peter Gottschling <[email protected]> Sun, 21 Jan 2007 11:39:55 -0500
| Newsgroups | gmane.comp.lib.mtl.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Erlend, There are several of such errors which mostly showed up by changing to GCC 4.0 (which is much stricter than previous compiler versions) and I already fixed a lot of them. Did you look at: http://www.osl.iu.edu/research/itl/bug_fixes.php3 This might solve your problems. If not I'll have a look at it. Thanks, Peter On 21.01.2007, at 07:39, Erlend Davidson wrote: > 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/ > ------------ Peter Gottschling Research Associate Open Systems Laboratory Indiana University 135 Lindley Hall Bloomington, IN 47405 Tel.: +1-812-855-3608 Fax: +1-812-856-0853 http://www.osl.iu.edu/~pgottsch _______________________________________________ This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/