Hello ginac, I use gcc version 2.96 20000731 (Red Hat Linux 7.0) on Pent.III gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) Whenever I want to compile ginac I got the following error: In file included from /usr/local/include/ginac/ginac.h:39, /usr/local/include/ginac/matrix.h:144: non-local function `GiNaC::ex GiNaC::determinant (const GiNaC::matrix &, unsigned int = GiNaC::determinant_algo::automatic)' uses anonymous type -- With best regards, Ralf Hoch University of Kassel Phone: (+49)-5542-98-1609 Dept. of Agriculture and Fax: (+49)-5542-98-1556 Environmental Protection (FB 11) email: hoch@wiz.uni-kassel.de D-37213 Witzenhausen, (FRG)
On Thu, 4 Jan 2001, Ralf Hoch wrote:
I use gcc version 2.96 20000731 (Red Hat Linux 7.0) on Pent.III gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
Redhat 7.0 sucks. Please read <http://gcc.gnu.org/gcc-2.96.html> to learn why. We have observed this behaviour from time to time with different versions of GCC, but only with non-released ones. Are you saying the error occured in egcs-1.1.2 as well? I'll have a look at what gcc-3.0 prereleases do and maybe file a bug against it if it doesn't like matrix.h:144 either. In any case, I am pretty sure the error is not GiNaC's.
Whenever I want to compile ginac I got the following error:
In file included from /usr/local/include/ginac/ginac.h:39, /usr/local/include/ginac/matrix.h:144: non-local function `GiNaC::ex GiNaC::determinant (const GiNaC::matrix &, unsigned int = GiNaC::determinant_algo::automatic)' uses anonymous type
Just delete that default argument in matrix.h:143 and it should work for you. Or bootstrap a decent compiler (e.g. gcc-2.95.2) and use that one instead (but beware the ABI has changed, so you will have to recompile CLN as well). Regards -richy. -- Richard Kreckel <Richard.Kreckel@Uni-Mainz.DE> <http://wwwthep.physik.uni-mainz.de/~kreckel/>
Hi! On Thu, Jan 04, 2001 at 11:30:52AM +0100, Ralf Hoch wrote:
I use gcc version 2.96 20000731 (Red Hat Linux 7.0) on Pent.III
Installing the latest official gcc packages from Red Hat (2.96-69) should help. Bye, Christian -- / Coding on PowerPC and proud of it \/ http://www.uni-mainz.de/~bauec002/
participants (3)
-
Christian Bauer
-
Ralf Hoch
-
Richard B. Kreckel