From help-octave-request at che dot utexas dot edu Tue Jan 18 12:21:31 1994 Subject: octave, gcc 2.5.7 & Solaris 2.2 From: Mattolini Riccardo To: help-octave at che dot utexas dot edu Date: Tue, 18 Jan 94 19:07:06 +0100 I am trying to compile octave 0.79 on a SparcStation IPX with Solaris 2.2. I am using gcc 2.5.7 and libg++ 2.5.3 . During the compilation I obtained these errors. Can someone tell me where is the problem. Thanks. Riccardo Mattolini g++ -c -I. -I. -DNPSOL_MISSING=1 -DQPSOL_MISSING=1 -DFSQP_MISSING=1 -DC_ALLOCA=1 -DSTACK_DIRECTION=0 -Dconst= -DF77_APPEND_UNDERSCORE=1 -DHAVE_STRING_H=1 -DHAVE_VARARGS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_FCNTL_H=1 -DHAVE_SYS_TTOLD_H=1 -DHAVE_SYS_PTEM_H=1 -DHAVE_UNISTD_H=1 -DVOID_CLOSEDIR=1 -DTM_IN_SYS_TIME=1 -DRETSIGTYPE=int -DHAVE_TERMIOS_H=1 -DACOSH_MISSING=1 -DASINH_MISSING=1 -DATANH_MISSING=1 -g -O -Wall Bounds.cc In file included from /opt/gnu/lib/g++-include/iostream.h:31, from Bounds.cc:28: /opt/gnu/lib/g++-include/streambuf.h:199: `ios::_IO_fix_vtable()' is already defined in the class ios /opt/gnu/lib/g++-include/streambuf.h:229: common_type called with uncommon method types (compiler error) /opt/gnu/lib/g++-include/streambuf.h:229: `ios::pword(int)' is already defined in the class ios /opt/gnu/lib/g++-include/streambuf.h:231: common_type called with uncommon method types (compiler error) /opt/gnu/lib/g++-include/streambuf.h:231: `ios::iword(int)' is already defined in the class ios In file included from Bounds.h:32, from Bounds.cc:29: Matrix.h:345: common_type called with uncommon method types (compiler error) Matrix.h:345: `Matrix::elem(int, int)' is already defined in the class Matrix Matrix.h:346: common_type called with uncommon method types (compiler error) Matrix.h:346: `Matrix::checkelem(int, int)' is already defined in the class Matrix Matrix.h:347: common_type called with uncommon method types (compiler error) Matrix.h:347: `Matrix::operator ()(int, int)' is already defined in the class Matrix Matrix.h:555: parse error before `Matrix' Matrix.h: In method `double & Matrix::checkelem(int, int)': Matrix.h:558: common_type called with uncommon method types (compiler error) Matrix.h: In method `double & Matrix::checkelem(int, int)': Matrix.h:564: warning: reference to non-lvalue returned Matrix.h: In method `double & Matrix::operator ()(int, int)': Matrix.h:568: common_type called with uncommon method types (compiler error) Matrix.h: In method `double Matrix::checkelem(int, int)': Matrix.h:573: redefinition of `double Matrix::checkelem(int, int)' Matrix.h:558: `double & Matrix::checkelem(int, int)' previously defined here Matrix.h:573: common_type called with uncommon method types (compiler error) Matrix.h: In method `double Matrix::operator ()(int, int)': Matrix.h:583: redefinition of `double Matrix::operator ()(int, int)' Matrix.h:568: `double & Matrix::operator ()(int, int)' previously defined here Matrix.h:583: common_type called with uncommon method types (compiler error) Matrix.h: At top level: Matrix.h:617: common_type called with uncommon method types (compiler error) Matrix.h:617: `ColumnVector::elem(int)' is already defined in the class ColumnVector Matrix.h:618: common_type called with uncommon method types (compiler error) Matrix.h:618: `ColumnVector::checkelem(int)' is already defined in the class ColumnVector Matrix.h:619: common_type called with uncommon method types (compiler error) Matrix.h:619: `ColumnVector::operator ()(int)' is already defined in the class ColumnVector Matrix.h: In method `double & ColumnVector::elem(int)': Matrix.h:716: common_type called with uncommon method types (compiler error) Matrix.h: In method `double & ColumnVector::checkelem(int)': Matrix.h:720: common_type called with uncommon method types (compiler error) Matrix.h: In method `double & ColumnVector::operator ()(int)': Matrix.h:729: common_type called with uncommon method types (compiler error) Matrix.h: In method `double ColumnVector::elem(int)': Matrix.h:731: redefinition of `double ColumnVector::elem(int)' Matrix.h:716: `double & ColumnVector::elem(int)' previously defined here Matrix.h:731: common_type called with uncommon method types (compiler error) Matrix.h: In method `double ColumnVector::checkelem(int)': Matrix.h:735: redefinition of `double ColumnVector::checkelem(int)' Matrix.h:720: `double & ColumnVector::checkelem(int)' previously defined here Matrix.h:735: common_type called with uncommon method types (compiler error) Matrix.h: In method `double ColumnVector::operator ()(int)': Matrix.h:744: redefinition of `double ColumnVector::operator ()(int)' Matrix.h:729: `double & ColumnVector::operator ()(int)' previously defined here Matrix.h:744: common_type called with uncommon method types (compiler error) Matrix.h: At top level: Matrix.h:778: common_type called with uncommon method types (compiler error) Matrix.h:778: `RowVector::elem(int)' is already defined in the class RowVector Matrix.h:779: common_type called with uncommon method types (compiler error) Matrix.h:779: `RowVector::checkelem(int)' is already defined in the class RowVector Matrix.h:780: common_type called with uncommon method types (compiler error) Matrix.h:780: `RowVector::operator ()(int)' is already defined in the class RowVector Matrix.h: In method `double & RowVector::elem(int)': Matrix.h:883: common_type called with uncommon method types (compiler error) Matrix.h: In method `double & RowVector::checkelem(int)': Matrix.h:887: common_type called with uncommon method types (compiler error) Matrix.h: In method `double & RowVector::operator ()(int)': Matrix.h:896: common_type called with uncommon method types (compiler error) Matrix.h: In method `double RowVector::elem(int)': Matrix.h:898: redefinition of `double RowVector::elem(int)' Matrix.h:883: `double & RowVector::elem(int)' previously defined here Matrix.h:898: common_type called with uncommon method types (compiler error) Matrix.h: In method `double RowVector::checkelem(int)': Matrix.h:902: redefinition of `double RowVector::checkelem(int)' Matrix.h:887: `double & RowVector::checkelem(int)' previously defined here Matrix.h:902: common_type called with uncommon method types (compiler error) Matrix.h: In method `double RowVector::operator ()(int)': Matrix.h:911: redefinition of `double RowVector::operator ()(int)' Matrix.h:896: `double & RowVector::operator ()(int)' previously defined here Matrix.h:911: common_type called with uncommon method types (compiler error) Matrix.h: At top level: Matrix.h:947: common_type called with uncommon method types (compiler error) Matrix.h:947: `DiagMatrix::elem(int, int)' is already defined in the class DiagMatrix Matrix.h:948: common_type called with uncommon method types (compiler error) Matrix.h:948: `DiagMatrix::checkelem(int, int)' is already defined in the class DiagMatrix Matrix.h:949: common_type called with uncommon method types (compiler error) Matrix.h:949: `DiagMatrix::operator ()(int, int)' is already defined in the class DiagMatrix Matrix.h: In method `double & DiagMatrix::elem(int, int)': Matrix.h:1077: common_type called with uncommon method types (compiler error) Matrix.h: In method `double & DiagMatrix::checkelem(int, int)': Matrix.h:1080: common_type called with uncommon method types (compiler error) Matrix.h: In method `double & DiagMatrix::operator ()(int, int)': Matrix.h:1090: common_type called with uncommon method types (compiler error) Matrix.h: In method `double DiagMatrix::elem(int, int)': Matrix.h:1093: redefinition of `double DiagMatrix::elem(int, int)' Matrix.h:1077: `double & DiagMatrix::elem(int, int)' previously defined here Matrix.h:1093: common_type called with uncommon method types (compiler error) Matrix.h: In method `double DiagMatrix::checkelem(int, int)': Matrix.h:1096: redefinition of `double DiagMatrix::checkelem(int, int)' Matrix.h:1080: `double & DiagMatrix::checkelem(int, int)' previously defined here Matrix.h:1096: common_type called with uncommon method types (compiler error) Matrix.h: In method `double DiagMatrix::operator ()(int, int)': Matrix.h:1106: redefinition of `double DiagMatrix::operator ()(int, int)' Matrix.h:1090: `double & DiagMatrix::operator ()(int, int)' previously defined here Matrix.h:1106: common_type called with uncommon method types (compiler error) Matrix.h: At top level: Matrix.h:1151: common_type called with uncommon method types (compiler error) Matrix.h:1151: `ComplexMatrix::elem(int, int)' is already defined in the class ComplexMatrix Matrix.h:1152: common_type called with uncommon method types (compiler error) Matrix.h:1152: `ComplexMatrix::checkelem(int, int)' is already defined in the class ComplexMatrix Matrix.h:1153: common_type called with uncommon method types (compiler error) Matrix.h:1153: `ComplexMatrix::operator ()(int, int)' is already defined in the class ComplexMatrix Matrix.h: In method `class Complex & ComplexMatrix::elem(int, int)': Matrix.h:1399: common_type called with uncommon method types (compiler error) Matrix.h: In method `class Complex & ComplexMatrix::checkelem(int, int)': Matrix.h:1402: common_type called with uncommon method types (compiler error) Matrix.h: In method `class Complex & ComplexMatrix::operator ()(int, int)': Matrix.h:1412: common_type called with uncommon method types (compiler error) Matrix.h: In method `class Complex ComplexMatrix::elem(int, int)': Matrix.h:1415: redefinition of `class Complex ComplexMatrix::elem(int, int)' Matrix.h:1399: `class Complex & ComplexMatrix::elem(int, int)' previously defined here Matrix.h:1415: common_type called with uncommon method types (compiler error) Matrix.h: In method `class Complex ComplexMatrix::checkelem(int, int)': Matrix.h:1418: redefinition of `class Complex ComplexMatrix::checkelem(int, int)' Matrix.h:1402: `class Complex & ComplexMatrix::checkelem(int, int)' previously defined here Matrix.h:1418: common_type called with uncommon method types (compiler error) Matrix.h: In method `class Complex ComplexMatrix::operator ()(int, int)': Matrix.h:1428: redefinition of `class Complex ComplexMatrix::operator ()(int, int)' Matrix.h:1412: `class Complex & ComplexMatrix::operator ()(int, int)' previously defined here Matrix.h:1428: common_type called with uncommon method types (compiler error) Matrix.h: At top level: Matrix.h:1464: common_type called with uncommon method types (compiler error) Matrix.h:1464: `ComplexColumnVector::elem(int)' is already defined in the class ComplexColumnVector Matrix.h:1465: common_type called with uncommon method types (compiler error) Matrix.h:1465: `ComplexColumnVector::checkelem(int)' is already defined in the class ComplexColumnVector Matrix.h:1466: common_type called with uncommon method types (compiler error) Matrix.h:1466: `ComplexColumnVector::operator ()(int)' is already defined in the class ComplexColumnVector Matrix.h: In method `class Complex & ComplexColumnVector::elem(int)': Matrix.h:1592: common_type called with uncommon method types (compiler error) Matrix.h: In method `class Complex & ComplexColumnVector::checkelem(int)': Matrix.h:1596: common_type called with uncommon method types (compiler error) Matrix.h: In method `class Complex & ComplexColumnVector::operator ()(int)': Matrix.h:1606: common_type called with uncommon method types (compiler error) Matrix.h: In method `class Complex ComplexColumnVector::elem(int)': Matrix.h:1608: redefinition of `class Complex ComplexColumnVector::elem(int)' Matrix.h:1592: `class Complex & ComplexColumnVector::elem(int)' previously defined here Matrix.h:1608: common_type called with uncommon method types (compiler error) Matrix.h: In method `class Complex ComplexColumnVector::checkelem(int)': Matrix.h:1612: redefinition of `class Complex ComplexColumnVector::checkelem(int)' Matrix.h:1596: `class Complex & ComplexColumnVector::checkelem(int)' previously defined here Matrix.h:1612: common_type called with uncommon method types (compiler error) Matrix.h: In method `class Complex ComplexColumnVector::operator ()(int)': Matrix.h:1622: redefinition of `class Complex ComplexColumnVector::operator ()(int)' Matrix.h:1606: `class Complex & ComplexColumnVector::operator ()(int)' previously defined here Matrix.h:1622: common_type called with uncommon method types (compiler error) Matrix.h: At top level: Matrix.h:1658: common_type called with uncommon method types (compiler error) Matrix.h:1658: `ComplexRowVector::checkelem(int)' is already defined in the class ComplexRowVector Matrix.h:1659: common_type called with uncommon method types (compiler error) Matrix.h:1659: `ComplexRowVector::elem(int)' is already defined in the class ComplexRowVector Matrix.h:1660: common_type called with uncommon method types (compiler error) Matrix.h:1660: `ComplexRowVector::operator ()(int)' is already defined in the class ComplexRowVector Matrix.h: In method `class Complex & ComplexRowVector::elem(int)': Matrix.h:1787: common_type called with uncommon method types (compiler error) Matrix.h: In method `class Complex & ComplexRowVector::checkelem(int)': Matrix.h:1791: common_type called with uncommon method types (compiler error) Matrix.h: In method `class Complex & ComplexRowVector::operator ()(int)': Matrix.h:1800: common_type called with uncommon method types (compiler error) Matrix.h: In method `class Complex ComplexRowVector::elem(int)': Matrix.h:1802: redefinition of `class Complex ComplexRowVector::elem(int)' Matrix.h:1787: `class Complex & ComplexRowVector::elem(int)' previously defined here Matrix.h:1802: common_type called with uncommon method types (compiler error) Matrix.h: In method `class Complex ComplexRowVector::checkelem(int)': Matrix.h:1806: redefinition of `class Complex ComplexRowVector::checkelem(int)' Matrix.h:1791: `class Complex & ComplexRowVector::checkelem(int)' previously defined here Matrix.h:1806: common_type called with uncommon method types (compiler error) Matrix.h: In method `class Complex ComplexRowVector::operator ()(int)': Matrix.h:1816: redefinition of `class Complex ComplexRowVector::operator ()(int)' Matrix.h:1800: `class Complex & ComplexRowVector::operator ()(int)' previously defined here Matrix.h:1816: common_type called with uncommon method types (compiler error) Matrix.h: At top level: Matrix.h:1859: common_type called with uncommon method types (compiler error) Matrix.h:1859: `ComplexDiagMatrix::checkelem(int, int)' is already defined in the class ComplexDiagMatrix Matrix.h:1860: common_type called with uncommon method types (compiler error) Matrix.h:1860: `ComplexDiagMatrix::elem(int, int)' is already defined in the class ComplexDiagMatrix Matrix.h:1861: common_type called with uncommon method types (compiler error) Matrix.h:1861: `ComplexDiagMatrix::operator ()(int, int)' is already defined in the class ComplexDiagMatrix Matrix.h: In method `class Complex & ComplexDiagMatrix::elem(int, int)': Matrix.h:2015: common_type called with uncommon method types (compiler error) Matrix.h: In method `class Complex & ComplexDiagMatrix::checkelem(int, int)': Matrix.h:2018: common_type called with uncommon method types (compiler error) Matrix.h: In method `class Complex & ComplexDiagMatrix::operator ()(int, int)': Matrix.h:2028: common_type called with uncommon method types (compiler error) Matrix.h: In method `class Complex ComplexDiagMatrix::elem(int, int)': Matrix.h:2031: redefinition of `class Complex ComplexDiagMatrix::elem(int, int)' Matrix.h:2015: `class Complex & ComplexDiagMatrix::elem(int, int)' previously defined here Matrix.h:2031: common_type called with uncommon method types (compiler error) Matrix.h: In method `class Complex ComplexDiagMatrix::checkelem(int, int)': Matrix.h:2034: redefinition of `class Complex ComplexDiagMatrix::checkelem(int, int)' Matrix.h:2018: `class Complex & ComplexDiagMatrix::checkelem(int, int)' previously defined here Matrix.h:2034: common_type called with uncommon method types (compiler error) Matrix.h: In method `class Complex ComplexDiagMatrix::operator ()(int, int)': Matrix.h:2044: redefinition of `class Complex ComplexDiagMatrix::operator ()(int, int)' Matrix.h:2028: `class Complex & ComplexDiagMatrix::operator ()(int, int)' previously defined here Matrix.h:2044: common_type called with uncommon method types (compiler error) Matrix.h: At top level: Matrix.h:2512: `SCHUR::operator =(SCHUR &, char *)' must take exactly one argument Matrix.h:2538: `SCHUR::operator =(SCHUR &, char *)' must take exactly one argument Matrix.h:2564: `ComplexSCHUR::operator =(ComplexSCHUR &, char *)' must take exactly one argument Matrix.h:2593: `ComplexSCHUR::operator =(ComplexSCHUR &, char *)' must take exactly one argument Bounds.cc: In method `class Bounds & Bounds::set_bound(int, double, double)': Bounds.cc:124: invalid lvalue in assignment Bounds.cc:125: invalid lvalue in assignment Bounds.cc: In method `class Bounds & Bounds::set_lower_bound(int, double)': Bounds.cc:155: invalid lvalue in assignment Bounds.cc: In method `class Bounds & Bounds::set_upper_bound(int, double)': Bounds.cc:163: invalid lvalue in assignment make[1]: *** [Bounds.o] Error 1