From octave-maintainers-request at bevo dot che dot wisc dot edu Mon Nov 10 11:26:58 2003 Subject: Error building CVS with Sun C++ compiler From: "John W. Eaton" To: Albert Chin cc: octave-maintainers at bevo dot che dot wisc dot edu Date: Mon, 10 Nov 2003 11:26:51 -0600 On 7-Nov-2003, Albert Chin wrote: | Octave 2.1.50 built fine with the Sun C++ compiler (from Forte 6 or | Forte 7). I just synced with CVS and now I get: | | CC -c -I/opt/TWWfsw/readline42a/include -L/opt/TWWfsw/ncurses5/include | -I/opt/TWWfsw/libfftw21/include -I. -I.. -I../liboctave -I../src | -I../libcruft/misc -I../glob -I../glob -DHAVE_CONFIG_H -dalign -xO2 | -xtarget=generic -xarch=v8 ODESSA.cc -o ODESSA.o | "Array.h", line 161: Warning (Anachronism): Type names qualified by | template parameters require "typename". | "Array.h", line 521: Where: While specializing "Array". | "Array.h", line 521: Where: Specialized in non-template code. | "Array.cc", line 1304: Warning: idx hides Array::idx. | "ODESSA.cc", line 65: Where: While instantiating | "Array::maybe_delete_elements(Array&, const | Matrix&)". | "ODESSA.cc", line 65: Where: Instantiated from non-template code. | "Array.cc", line 1741: Warning: idx hides Array::idx. | "ODESSA.cc", line 65: Where: While instantiating | "Array::indexN(idx_vector&, int, const Matrix&) const". | "ODESSA.cc", line 65: Where: Instantiated from non-template code. | "Array.cc", line 1868: Warning: idx hides Array::idx. | "ODESSA.cc", line 65: Where: While instantiating | "Array::indexN(idx_vector&, int, const Matrix&) const". | "ODESSA.cc", line 65: Where: Instantiated from non-template code. | | "Array.cc", line 1991: Error: The name get_elt_idx(const | Array&, const Array&) is unusable in | Array::index(Array&, int, const Matrix&) const. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | "ODESSA.cc", line 65: Where: While instantiating | "Array::index(Array&, int, const Matrix&) const". | "ODESSA.cc", line 65: Where: Instantiated from non-template code. | 1 Error(s) and 4 Warning(s) detected. | gmake[2]: *** [ODESSA.o] Error 1 | gmake[2]: Leaving directory `/opt/build/octave-2.1.50/liboctave' I've checked in changes that I think should fix these problems. Thanks, jwe