root wrote: > Jason, Please send me a diff-Naur patch of your changes. --Tim
I'm posting here for other people who may be trying to compile it. These, of course, are quick hacks that get it to compile (equivalent to commenting out the offending lines). If there is a quick test or two that you want me to do, let me know. diff -Naur magnus20060530/back_end/libg++/include/Integer.h magnusnew/back_end/libg++/include/Integer.h --- magnus20060530/back_end/libg++/include/Integer.h 2006-04-14 14:21:19.000000000 -0500 +++ magnusnew/back_end/libg++/include/Integer.h 2008-04-30 15:22:39.000000000 -0500 @@ -129,7 +129,7 @@ // (constructive binary operations are inlined below) -#if defined (__GNUG__) && ! defined (__STRICT_ANSI__) +#if defined (__GNUG__) && ! defined (__STRICT_ANSI__) && 0 friend Integer operator <? (const Integer& x, const Integer& y); // min friend Integer operator >? (const Integer& x, const Integer& y); // max #endif @@ -689,7 +689,7 @@ return *this; } -#if defined (__GNUG__) && ! defined (__STRICT_ANSI__) +#if defined (__GNUG__) && ! defined (__STRICT_ANSI__) && 0 inline Integer operator <? (const Integer& x, const Integer& y) { return (compare(x.rep, y.rep) <= 0) ? x : y; diff -Naur magnus20060530/back_end/libg++/include/Rational.h magnusnew/back_end/libg++/include/Rational.h --- magnus20060530/back_end/libg++/include/Rational.h 2006-04-14 14:21:19.000000000 -0500 +++ magnusnew/back_end/libg++/include/Rational.h 2008-04-30 15:23:15.000000000 -0500 @@ -72,7 +72,7 @@ Rational& operator *= (const Rational& y); Rational& operator /= (const Rational& y); -#if defined (__GNUG__) && ! defined (__STRICT_ANSI__) +#if defined (__GNUG__) && ! defined (__STRICT_ANSI__) && 0 friend Rational operator <? (const Rational& x, const Rational& y); // min friend Rational operator >? (const Rational& x, const Rational& y); // max #endif @@ -231,7 +231,7 @@ inline const Integer& Rational::denominator() const { return den; } inline Rational::operator double() const { return ratio(num, den); } -#if defined (__GNUG__) && ! defined (__STRICT_ANSI__) +#if defined (__GNUG__) && ! defined (__STRICT_ANSI__) && 0 inline Rational operator <? (const Rational& x, const Rational& y) { if (compare(x, y) <= 0) return x; else return y; The errors without the patch are below (and similar ones for Rational.h): g++ -fno-operator-names -D_G_NO_NRV -Wno-deprecated -DHAVE_UNISTD_H -DDEBUG -g -DSAFETY=2 -I../global -Iinclude -c src/Intdouble.C -o src/obj/Intdouble.o In file included from src/Intdouble.C:22: include/Integer.h:133: error: declaration of ‘operator<’ as non-function include/Integer.h:133: error: expected ‘;’ before ‘?’ token include/Integer.h:134: error: declaration of ‘operator>’ as non-function include/Integer.h:134: error: expected ‘;’ before ‘?’ token include/Integer.h:693: error: expected initializer before ‘?’ token include/Integer.h:698: error: expected initializer before ‘?’ token make[3]: *** [src/obj/Intdouble.o] Error 1 make[3]: Leaving directory `/home/grout/Desktop/magnus20060530/back_end/libg++' make[2]: *** [liblibg++] Error 2 make[2]: Leaving directory `/home/grout/Desktop/magnus20060530/back_end/SessionManager' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/grout/Desktop/magnus20060530/back_end' make: *** [all] Error 2 Thanks, Jason --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---