Installing Octave

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Installing Octave

Xin Yu

I have trouble installing octave. My g++ failed to produce objects for
ColVector.cc and f-hess.cc. I used gcc 2.6.1. The error message I got
is included here.

Xin



g++ -c  -I. -I.. -I../liboctave -I. -I./liboctave  -DHAVE_CONFIG_H -fexternal-templates  -g -O -Wall ColVector.cc
Array.h: In method `DiagArray<double>::Proxy::Proxy(DiagArray<double> *, int, int)':
In file included from ColVector.cc:30:
Array.h:278: warning: member initializers for `int DiagArray<double>::Proxy::j'
Array.h:280: warning:   and `class DiagArray<double> * DiagArray<double>::Proxy::object'
Array.h:242: warning:   will be re-ordered to match declaration order
Array.h: In method `DiagArray<Complex>::Proxy::Proxy(DiagArray<Complex> *, int, int)':
In file included from ColVector.cc:30:
Array.h:278: warning: member initializers for `int DiagArray<Complex>::Proxy::j'
Array.h:280: warning:   and `class DiagArray<Complex> * DiagArray<Complex>::Proxy::object'
Array.h:242: warning:   will be re-ordered to match declaration order
ColVector.cc: In method `class ColumnVector & ColumnVector::operator +=(const class ColumnVector &)':
ColVector.cc:215: warning: returning reference to temporary
ColVector.cc: In method `class ColumnVector & ColumnVector::operator -=(const class ColumnVector &)':
ColVector.cc:235: warning: returning reference to temporary
Matrix.h: In function `class ComplexColumnVector operator +(const class ColumnVector &, const class Complex &)':
Matrix.h:1032: constructor `ComplexColumnVector::ComplexColumnVector(class Complex *, int)' is private
ColVector.cc:253: within this context
ColVector.cc:254: warning: control reaches end of non-void function `operator +(const ColumnVector &, const Complex &)'
Matrix.h: In function `class ComplexColumnVector operator -(const class ColumnVector &, const class Complex &)':
Matrix.h:1032: constructor `ComplexColumnVector::ComplexColumnVector(class Complex *, int)' is private
ColVector.cc:260: within this context
ColVector.cc:261: warning: control reaches end of non-void function `operator -(const ColumnVector &, const Complex &)'
Matrix.h: In function `class ComplexColumnVector operator (unary *)(const class ColumnVector &, const class Complex &)':
Matrix.h:1032: constructor `ComplexColumnVector::ComplexColumnVector(class Complex *, int)' is private
ColVector.cc:267: within this context
ColVector.cc:268: warning: control reaches end of non-void function `operator (unary *)(const ColumnVector &, const Complex &)'
Matrix.h: In function `class ComplexColumnVector operator /(const class ColumnVector &, const class Complex &)':
Matrix.h:1032: constructor `ComplexColumnVector::ComplexColumnVector(class Complex *, int)' is private
ColVector.cc:274: within this context
ColVector.cc:275: warning: control reaches end of non-void function `operator /(const ColumnVector &, const Complex &)'
Matrix.h: In function `class ComplexColumnVector operator +(const class Complex &, const class ColumnVector &)':
Matrix.h:1032: constructor `ComplexColumnVector::ComplexColumnVector(class Complex *, int)' is private
ColVector.cc:283: within this context
ColVector.cc:284: warning: control reaches end of non-void function `operator +(const Complex &, const ColumnVector &)'
Matrix.h: In function `class ComplexColumnVector operator -(const class Complex &, const class ColumnVector &)':
Matrix.h:1032: constructor `ComplexColumnVector::ComplexColumnVector(class Complex *, int)' is private
ColVector.cc:290: within this context
ColVector.cc:291: warning: control reaches end of non-void function `operator -(const Complex &, const ColumnVector &)'
Matrix.h: In function `class ComplexColumnVector operator (unary *)(const class Complex &, const class ColumnVector &)':
Matrix.h:1032: constructor `ComplexColumnVector::ComplexColumnVector(class Complex *, int)' is private
ColVector.cc:297: within this context
ColVector.cc:298: warning: control reaches end of non-void function `operator (unary *)(const Complex &, const ColumnVector &)'
Matrix.h: In function `class ComplexColumnVector operator /(const class Complex &, const class ColumnVector &)':
Matrix.h:1032: constructor `ComplexColumnVector::ComplexColumnVector(class Complex *, int)' is private
ColVector.cc:304: within this context
ColVector.cc:305: warning: control reaches end of non-void function `operator /(const Complex &, const ColumnVector &)'
Matrix.h: In function `class Matrix operator (unary *)(const class ColumnVector &, const class RowVector &)':
Matrix.h:294: constructor `Matrix::Matrix(double *, int, int)' is private
ColVector.cc:336: within this context
ColVector.cc:337: warning: control reaches end of non-void function `operator (unary *)(const ColumnVector &, const RowVector &)'
Matrix.h: In function `class ComplexColumnVector operator +(const class ColumnVector &, const class ComplexColumnVector &)':
Matrix.h:1032: constructor `ComplexColumnVector::ComplexColumnVector(class Complex *, int)' is private
ColVector.cc:360: within this context
ColVector.cc:361: warning: control reaches end of non-void function `operator +(const ColumnVector &, const ComplexColumnVector &)'
Matrix.h: In function `class ComplexColumnVector operator -(const class ColumnVector &, const class ComplexColumnVector &)':
Matrix.h:1032: constructor `ComplexColumnVector::ComplexColumnVector(class Complex *, int)' is private
ColVector.cc:377: within this context
ColVector.cc:378: warning: control reaches end of non-void function `operator -(const ColumnVector &, const ComplexColumnVector &)'
Matrix.h: In function `class ComplexColumnVector product(const class ColumnVector &, const class ComplexColumnVector &)':
Matrix.h:1032: constructor `ComplexColumnVector::ComplexColumnVector(class Complex *, int)' is private
ColVector.cc:394: within this context
ColVector.cc:395: warning: control reaches end of non-void function `product(const ColumnVector &, const ComplexColumnVector &)'
Matrix.h: In function `class ComplexColumnVector quotient(const class ColumnVector &, const class ComplexColumnVector &)':
Matrix.h:1032: constructor `ComplexColumnVector::ComplexColumnVector(class Complex *, int)' is private
ColVector.cc:411: within this context
ColVector.cc:412: warning: control reaches end of non-void function `quotient(const ColumnVector &, const ComplexColumnVector &)'
Matrix.h: In function `class ColumnVector real(const class ComplexColumnVector &)':
Matrix.h:410: constructor `ColumnVector::ColumnVector(double *, int)' is private
ColVector.cc:681: within this context
Matrix.h: In function `class ColumnVector imag(const class ComplexColumnVector &)':
Matrix.h:410: constructor `ColumnVector::ColumnVector(double *, int)' is private
ColVector.cc:691: within this context
Matrix.h: In function `class ComplexMatrix operator (unary *)(const class ComplexColumnVector &, const class ComplexRowVector &)':
Matrix.h:904: constructor `ComplexMatrix::ComplexMatrix(class Complex *, int, int)' is private
ColVector.cc:894: within this context
ColVector.cc:895: warning: control reaches end of non-void function `operator (unary *)(const ComplexColumnVector &, const ComplexRowVector &)'
gmake[1]: *** [ColVector.o] Error 1


l-templates  -g -O -Wall f-hess.cc
../liboctave/Array.h: In method `DiagArray<double>::Proxy::Proxy(DiagArray<double> *, int, int)':
In file included from f-hess.cc:28:
../liboctave/Array.h:278: warning: member initializers for `int DiagArray<double>::Proxy::j'
../liboctave/Array.h:280: warning:   and `class DiagArray<double> * DiagArray<double>::Proxy::object'
../liboctave/Array.h:242: warning:   will be re-ordered to match declaration order
../liboctave/Array.h: In method `DiagArray<Complex>::Proxy::Proxy(DiagArray<Complex> *, int, int)':
In file included from f-hess.cc:28:
../liboctave/Array.h:278: warning: member initializers for `int DiagArray<Complex>::Proxy::j'
../liboctave/Array.h:280: warning:   and `class DiagArray<Complex> * DiagArray<Complex>::Proxy::object'
../liboctave/Array.h:242: warning:   will be re-ordered to match declaration order
f-hess.cc: In function `class tree_constant * hess(const class tree_constant *, int, int)':
f-hess.cc:132: call of overloaded constructor `tree_constant(int)' is ambiguous
tree-const.h:589: candidates are: tree_constant::tree_constant(tree_constant_rep &)
tree-const.h:587:                 tree_constant::tree_constant(const tree_constant &)
tree-const.h:565:                 tree_constant::tree_constant(const ComplexDiagMatrix &)
tree-const.h:571:                 tree_constant::tree_constant(const ComplexColumnVector &)
tree-const.h:567:                 tree_constant::tree_constant(const ComplexRowVector &)
tree-const.h:556:                 tree_constant::tree_constant(const ColumnVector &)
tree-const.h:561:                 tree_constant::tree_constant(const Complex &)
tree-const.h:552:                 tree_constant::tree_constant(const RowVector &)
tree-const.h:550:                 tree_constant::tree_constant(const DiagMatrix &)
tree-const.h:584:                 tree_constant::tree_constant(tree_constant_rep::constant_type)
tree-const.h:546:                 tree_constant::tree_constant(double)
f-hess.cc:132: in conversion to type `tree_constant'
f-hess.cc:148: call of overloaded constructor `tree_constant(int)' is ambiguous
tree-const.h:589: candidates are: tree_constant::tree_constant(tree_constant_rep &)
tree-const.h:587:                 tree_constant::tree_constant(const tree_constant &)
tree-const.h:565:                 tree_constant::tree_constant(const ComplexDiagMatrix &)
tree-const.h:571:                 tree_constant::tree_constant(const ComplexColumnVector &)
tree-const.h:567:                 tree_constant::tree_constant(const ComplexRowVector &)
tree-const.h:556:                 tree_constant::tree_constant(const ColumnVector &)
tree-const.h:561:                 tree_constant::tree_constant(const Complex &)
tree-const.h:552:                 tree_constant::tree_constant(const RowVector &)
tree-const.h:550:                 tree_constant::tree_constant(const DiagMatrix &)
tree-const.h:584:                 tree_constant::tree_constant(tree_constant_rep::constant_type)
tree-const.h:546:                 tree_constant::tree_constant(double)
f-hess.cc:148: in conversion to type `tree_constant'
gmake[1]: *** [f-hess.o] Error 1