This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
TNT 0.82 examples don't compile!
- To: egcs-bugs at cygnus dot com
- Subject: TNT 0.82 examples don't compile!
- From: Prabhu Ramachandran <prabhu at aero dot iitm dot ernet dot in>
- Date: Thu, 25 Jun 1998 18:16:41 +0530 (IST)
- Reply-To: Prabhu Ramachandran <prabhu at aero dot iitm dot ernet dot in>
Hi!
I just obtained the TNT (Template Numerical Toolkit) version 0.8.2
I didn't try the 0.9 version because it needed namespaces. When I compiled
one of the example programs with gcc-2.7.2.3 it worked fine but when I
used the egcs-1.0.3a release. I got the following errors. I tried to
compile it with the -fguiding-decls but it failed then as well. I would
like to know if this is a bug and what can I do about it. TNT is available
at http://math.nist.gov/tnt
I really don't know what's going on - could it be that the TNT
code is a little broken and that gcc-2.7 is lenient while egcs is strict
on the c++ that it sees? Would really appreciate if someone helped me!
Here are the error messages that eg++ threw up!
**********************************************************************
prabhu@Vulcan ~/stuff/tnt/examples [15:38:54] $ eg++ -I../include lu.cc -olu
In file included from lu.cc:19:
../include/vec.h:260: warning: friend declaration class istream & operator
>>(class istream &, class Vector<T> &)'
../include/vec.h:260: warning: will not be treated as a template
instantiation../include/vec.h:260: warning: unless you compile with
-fguiding-decls
../include/vec.h:260: warning: or add <> after the function name
In file included from ../include/fmat.h:23,
from lu.cc:20:
../include/region2d.h:37: Array2D::value_type' is not a valid declarator
../include/region2d.h:37: perhaps you want typename Array2D::value_type'
to make it a type
../include/region2d.h:37: parse error before ;'
../include/region2d.h:39: warning: ANSI C++ forbids typedef which does
not specify a type
../include/region2d.h:39: parse error before ;'
In file included from lu.cc:20:
../include/fmat.h:262: warning: friend declaration class istream & operator
>>(class istream &, class Fortran_matrix<T> &)'
../include/fmat.h:262: warning: will not be treated as a template
instantiation
../include/lu.h: In function int LU_factor(Matrix &, VectorSubscript &)':
In file included from lu.cc:21:
../include/lu.h:81: parse error before ;'
../include/lu.h:121: parse error before ='
../include/lu.h: In function int LU_solve(const Matrix &, const
VectorSubscripts &, Vector &)':
../include/lu.h:159: parse error before ='
../include/lu.h: In function int LU_factor<Fortran_matrix<double>,
Vector<int>>(class Fortran_matrix<double> &, class Vector<int> &)':
../include/lu.h:91: t' undeclared (first use this function)
../include/lu.h:91: (Each undeclared identifier is reported only once
../include/lu.h:91: for each function it appears in.)
../include/lu.h:124: recp' undeclared (first use this function)
../include/lu.h: In function int LU_solve<Fortran_matrix<double>,
Vector<double>, Vector<int>>(const class Fortran_matrix<double> &, const
class Vector<int> &, class Vector<double> &)':
../include/lu.h:164: sum' undeclared (first use this function)
**********************************************************************
thanks in advance,
Prabhu
------------------- Prabhu Ramachandran -----------------------------
E-mail: prabhu@aero.iitm.ernet.in
Finger: prabhu@www.aero.iitm.ernet.in
Home page: http://www.aero.iitm.ernet.in/~prabhu
---------------------------------------------------------------------