[SPAM:#### 97%] Re: ITL/MTL compile problem

Peter Gottschling <[email protected]> Tue, 13 Feb 2007 16:53:37 -0500
Newsgroups gmane.comp.lib.mtl.devel
Message-ID <[email protected]>
On 13.02.2007, at 07:54, Jaime Ambrus wrote:

> Some problems were found...
>
> I just wrote
>
> typedef entry_vec::iterator wk =3D w->begin();
>
You probably meant typename. ;-)

> whre it was
>
> entry_vec::iterator wk =3D w->begin();
>
> and it solved my problem. Some help from
>
> http://gcc.gnu.org/gcc-3.4/changes.html
>
> Thanks
>
>
> ___________________________________________________________
> Jaime Ambrus, Eng.
>
> SINMEC - Computational Fluid Dynamics Laboratory
>                   www.sinmec.ufsc.br
>
> EMC - Mechanical Engineering Departament.
> UFSC - Federal University of Santa Catarina.
>
> Florian=F3polis - SC - Brazil.
>
>
> Quoting Jaime Ambrus <[email protected]>:
>
>> Hi...
>>
>> I used to use ITL and MTL in my programs and now that I upgrade may
>> system I have this compile errors. I couldn't found something similar
>> in the mail list...   I think that the compiler is not understanding
>> the typedefs, but I'm not sure...
>>
>> Does someone have an idea what is happening ?
>>
>> I'm using gcc 3.4.6 in Red Hat Enterprise
>>
>> Thanks
>> ---
>>
>> In file included from ILinearSystem.h:37,
>>                   from ILinearSystem.cpp:10:
>> /home/jaime/lib/itl/preconditioner/ilut.h: In member function `void
>> itl::ILUT<Matrix>::do_ilut(const Matrix&, mtl::row_tag)':
>> /home/jaime/lib/itl/preconditioner/ilut.h:185: error: expected `;'
>> before "wk"
>> /home/jaime/lib/itl/preconditioner/ilut.h:186: error: expected `;'
>> before "wkend"
>> /home/jaime/lib/itl/preconditioner/ilut.h:189: error: `wk' was not
>> declared in this scope
>> /home/jaime/lib/itl/preconditioner/ilut.h:189: error: `wkend' was not
>> declared in this scope
>> /home/jaime/lib/itl/preconditioner/ilut.h:215: error: expected `;'
>> before "wj"
>> /home/jaime/lib/itl/preconditioner/ilut.h:216: error: expected `;'
>> before "tmp_wj"
>> /home/jaime/lib/itl/preconditioner/ilut.h:219: error: `wj' was not
>> declared in this scope
>> /home/jaime/lib/itl/preconditioner/ilut.h:221: error: `tmp_wj' was not
>> declared in this scope
>> /home/jaime/lib/itl/preconditioner/ilut.h:228: error: `tmp_wj' was not
>> declared in this scope
>> /home/jaime/lib/itl/preconditioner/ilut.h:229: error: `wj' was not
>> declared in this scope
>> /home/jaime/lib/itl/preconditioner/ilut.h:235: error: `wj' was not
>> declared in this scope
>> ...other similar errors...
>> /home/jaime/lib/itl/preconditioner/ilut.h:496: error: `wj' was not
>> declared in this scope
>> /home/jaime/lib/mtl/mtl.h: In function `void mtl::scale_dim(Vector&,
>> const T&, mtl::oned_tag) [with Vector =3D mtl::dense1D<double, 0>, T =3D
>> double]':
>> /home/jaime/lib/mtl/mtl.h:177:   instantiated from `void
>> mtl::scale(const LinalgObj&, const T&) [with LinalgObj =3D IVector, T =
=3D
>> double]'
>> ILinearSystem.cpp:125:   instantiated from here
>> /home/jaime/lib/mtl/mtl.h:142: error: dependent-name `
>> mtl::dim_n<Vector>::RET' is parsed as a non-type, but instantiation
>> yields a type
>> /home/jaime/lib/mtl/mtl.h:142: note: say `typename
>> mtl::dim_n<Vector>::RET' if a type is meant
>> /home/jaime/lib/mtl/mtl.h: In function `typename
>> mtl::linalg_traits<Linalg>::magnitude_type mtl::two_norm(const
>> Vector&) [with Vector =3D mtl::dense1D<double, 0>]':
>> /home/jaime/lib/itl/interface/mtl.h:105:   instantiated from `typename
>> itl::number_traits<typename Vec::value_type>::magnitude_type
>> itl::two_norm(const Vec&) [with Vec =3D IVector]'
>> /home/jaime/lib/itl/krylov/gmres.h:83:   instantiated from `int
>> itl::gmres(const Matrix&, Vector&, const VectorB&, const
>> Preconditioner&, int, Iter&, Basis&) [with Matrix =3D SMatrix, Vector =
=3D
>> IVector, VectorB =3D IVector, Preconditioner =3D
>> itl::preconditioner<mtl::row_matrix<mtl::gen_ext_comp2D<double, int,
>> 0, 0, 0>, mtl::gen_rect_indexer<mtl::row_orien, 0, 0, int> >,
>> mtl::row_matrix<mtl::gen_ext_comp2D<double, int, 0, 0, 0>,
>> mtl::gen_rect_indexer<mtl::row_orien, 0, 0, int> >, 19, 20>, Iter =3D
>> itl::noisy_iteration<double>, Basis =3D
>> itl::modified_gram_schmidt<IVector>]'
>> ILinearSystem.cpp:55:   instantiated from here
>> /home/jaime/lib/mtl/mtl.h:288: error: dependent-name `
>> mtl::dim_n<Vector>::RET' is parsed as a non-type, but instantiation
>> yields a type
>> /home/jaime/lib/mtl/mtl.h:288: note: say `typename
>> mtl::dim_n<Vector>::RET' if a type is meant
>>
>>
>> ___________________________________________________________
>> Jaime Ambrus, Eng.
>>
>> SINMEC - Computational Fluid Dynamics Laboratory
>>                   www.sinmec.ufsc.br
>>
>> EMC - Mechanical Engineering Departament.
>> UFSC - Federal University of Santa Catarina.
>>
>> Florian=F3polis - SC - Brazil.
>>
>>
>>
>>
>>
>> ----------------------------------------------------------------
>> This message was sent using IMP, the Internet Messaging Program.
>>
>>
>> _______________________________________________
>> This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/
>>
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
> _______________________________________________
> 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/